Skip to content

Quickstart

This walkthrough assumes you have a config file declaring at least one volume and destination — see Config file & volumes for the minimal setup.

Terminal window
squirrel config check

The 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 resolvable

That 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”.

Terminal window
squirrel index pictures

Re-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).

  • --shallow skips re-hashing files whose (size, mtime) already match the stored row.
  • --dry-run shows what would change without writing to the database.

See Indexing for details.

Terminal window
squirrel sync pictures # all destinations declared on pictures
squirrel sync pictures --to nas # just one
squirrel sync # every (volume, destination) pair in config

Sync 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.

Terminal window
squirrel status # every volume
squirrel status pictures # just one

Per 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.

By BLAKE3 hex hash:

Terminal window
squirrel query 26e70f0a438787ee143979a9b519a4a330ea21e0a23d31fcb47051e70b8fe5ad

By path:

Terminal window
squirrel query ~/Pictures/foo.jpg

List duplicates, missing paths, or the full content history at a path:

Terminal window
squirrel query --duplicates
squirrel query --missing
squirrel query --history ~/Pictures/foo.jpg
Terminal window
squirrel runs
squirrel runs --volume pictures --limit 5
squirrel runs --failed # only failed, refused, aborted, or partial
squirrel runs --changes # hide clean no-ops

Once the agent is running its cadences, most rows are no-ops. --changes and --failed are how you keep the audit trail readable.

The trust surface: standing alarms, contested paths, live runs, and the per-target coverage grid — plus an ncdu-style index browser.

Terminal window
squirrel tui
squirrel # bare invocation opens the TUI when stdin/stdout are a terminal