Quickstart
This walkthrough assumes you have a config file declaring at least one volume and destination — see Config file & volumes for the minimal setup.
Check the config first
Section titled “Check the config first”squirrel config checkThe first thing to run after writing a config. It reads the config file rather than the database, so a volume you have declared but never indexed still shows up, and it tells you affirmatively what it found:
1 volumes, 1 destinations, 0 nodes — all resolvableThat matters because squirrel volumes reads the database — before your first
index it prints an empty list and exits 0, which looks identical to “nothing
configured”.
Index a volume
Section titled “Index a volume”squirrel index picturesRe-running squirrel index updates the index incrementally — new files are
added, modified files re-hashed, and files no longer on disk are flagged as
missing (rows are not deleted).
--shallowskips re-hashing files whose(size, mtime)already match the stored row.--dry-runshows what would change without writing to the database.
See Indexing for details.
Sync a volume to its destinations
Section titled “Sync a volume to its destinations”squirrel sync pictures # all destinations declared on picturessquirrel sync pictures --to nas # just onesquirrel sync # every (volume, destination) pair in configSync compares every file with its copy on the destination by checksum, and a
copy that fails the check after transfer keeps the run from being marked
success. Use --shallow to fall back to a size+mtime comparison for a big
initial push.
Ask whether you are safe
Section titled “Ask whether you are safe”squirrel status # every volumesquirrel status pictures # just onePer volume, one row per configured target: last sync, state, durability, verify
method, and evidence age — plus whether anything is offload-ready. The exit code
is the worst level found (0 green, 1 amber, 2 red), so the same command
works as a scripted health check.
Look up content
Section titled “Look up content”By BLAKE3 hex hash:
squirrel query 26e70f0a438787ee143979a9b519a4a330ea21e0a23d31fcb47051e70b8fe5adBy path:
squirrel query ~/Pictures/foo.jpgList duplicates, missing paths, or the full content history at a path:
squirrel query --duplicatessquirrel query --missingsquirrel query --history ~/Pictures/foo.jpgList recent runs
Section titled “List recent runs”squirrel runssquirrel runs --volume pictures --limit 5squirrel runs --failed # only failed, refused, aborted, or partialsquirrel runs --changes # hide clean no-opsOnce the agent is running its cadences, most rows are no-ops. --changes and
--failed are how you keep the audit trail readable.
Open the terminal UI
Section titled “Open the terminal UI”The trust surface: standing alarms, contested paths, live runs, and the per-target coverage grid — plus an ncdu-style index browser.
squirrel tuisquirrel # bare invocation opens the TUI when stdin/stdout are a terminalWhat’s next
Section titled “What’s next”- Destinations & secrets — configure NAS, S3, B2, GCS, SFTP.
- Destination layouts — mirror, encrypted, kopia, content-addressed, packed.
- Offloading — reclaim local space once content is durable offsite.