Skip to content

Auditing for drift

squirrel audit walks a volume looking for out-of-band drift since the last index — changes the normal index cadence may not have caught yet.

Terminal window
squirrel audit # every declared volume
squirrel audit pictures # one volume

With no argument it fans out to every declared volume (sorted).

FlagDefaultMeaning
(none)onCompare on-disk (size, mtime) against the index — the fast shortcut.
--deepoffRe-hash every file (bit-rot check) instead of the size+mtime shortcut.
--foldersoffRe-derive folder Merkle hashes from the index and report divergence — no disk walk.

--folders and --deep are mutually exclusive.

The default mode is a cheap comparison of the on-disk (size, mtime) against the recorded rows — it catches files that changed without being re-indexed.

--deep re-reads and re-hashes every file, catching silent corruption where the bytes changed but (size, mtime) did not. It is the local counterpart to the offsite scan-back fingerprint — one checks the copy on your disk, the other the copy in cold storage.

--folders re-derives folder Merkle hashes from the index and reports where they diverge, without touching the disk at all — a fast integrity check of the index’s own internal consistency.

An audit is recorded as an audit-kind run, visible in squirrel runs and the TUI. Like all runs, audit rows are never auto-pruned — see Runs & the audit trail.