Skip to content

Configuration reference

Squirrel reads a single TOML file (~/.squirrel/config.toml by default; override with --config or $SQUIRREL_CONFIG). Unknown fields, missing required fields, and unset environment variables are rejected at load time.

Any secret field accepts either a literal string or an inline { env = "VAR" } table resolved at load time.

KeyRequiredMeaning
dbnoPath to the SQLite index database. Default ~/.squirrel/index.db.
node_namenoThis host’s identity for peer sync, and the origin recorded on content it indexes. Defaults to the machine’s hostname.
KeyRequiredMeaning
pathyesAbsolute (or ~-relative) root directory of the volume.
sync_tonoList of destination names to push to.
sync_everynoDuration; the agent syncs this volume to every target in sync_to on this cadence. Absent = no scheduled sync.
index_everynoDuration; cadence for standalone index passes between syncs (a sync indexes first anyway). Absent = no extra indexing.
offload_requiresnoList of targets whose durability must cover a file before its local bytes may be offloaded. A volume without this key refuses to offload. Naming a mirror destination is a config error, except a native mirror on a local disk: every other mirror can never produce evidence the gate accepts.
offload_max_evidence_agenoDuration; a target whose durability evidence was last re-verified longer ago than this refuses the offload. Default disabled.
KeyRequiredMeaning
commandyesArgv list, exec’d without a shell (e.g. ["kopia", "snapshot", "create", "."]).
timeoutnoPer-invocation timeout. Default 1h.
intervalnoAlso fire on this cadence, regardless of change. Omit for on-change only.

See Hooks.

KeyApplies toMeaning
typealllocal, sftp, s3, b2, gcs, or kopia.
rootallBase path (or bucket sub-path) at the destination.
layoutevery type but kopiamirror (default), content-addressed, or packed.
concurrencyevery type but kopiaHow many files a push writes at once (optional; a positive integer). On a destination squirrel writes itself the default is 4 on local and 8 on sftp, where every file in flight shares one SSH connection; lower it for a slow disk or USB bridge, or a server that answers one request at a time. On a destination rclone writes (crypt, s3, b2, gcs) it caps rclone’s concurrent transfers (--transfers), whose default applies otherwise.
KeyMeaning
rootLocal directory. Requires a .squirrel-volume marker (see first use).
KeyMeaning
hostServer hostname.
portSSH port (optional; 22 when omitted).
userSSH user.
passwordSecret (literal or { env }).
key_filePath to a private key file, as an alternative to password (optional; a leading ~/ is expanded). A passphrase-protected key goes through ssh-agent instead.
rootBase path on the server.
known_hosts_filePath to a known_hosts file holding the server’s host key (a leading ~/ is expanded).
host_key_algorithmsSpace-separated list pinning accepted host-key algorithms (optional).

With neither password nor key_file set, squirrel logs in with the keys of the running ssh-agent (SSH_AUTH_SOCK).

An sftp destination without crypt, in any layout, is written by squirrel itself: it connects to the server, and always checks its host key, against known_hosts_file or ~/.ssh/known_hosts when that is unset. A server whose key the file does not hold is refused; the message gives the key’s fingerprint and the known_hosts line that trusts it, to add once you have confirmed it. A key that differs from the pinned one is refused too. Unless host_key_algorithms is set, squirrel asks the server for the key types the file holds for it. checkers tunes rclone, so these destinations reject it, and a mirror rejects hash_algo, since it runs no command on the server.

An encrypted sftp destination is written by rclone, which checks the host key against known_hosts_file and accepts whatever key the server presents when it is unset.

KeyMeaning
providerrclone s3 provider (e.g. AWS).
regionBucket region.
bucketBucket name.
rootSub-path within the bucket.
endpointCustom S3 endpoint URL for a non-AWS or self-hosted provider (optional).
access_key_idSecret.
secret_access_keySecret.
storage_classOptional; maps to rclone’s s3 storage_class. Use the exact value your provider documents.
KeyMeaning
bucketBucket name.
rootSub-path within the bucket.
account_idSecret; the B2 key ID (rendered as rclone’s account).
application_keySecret; the B2 application key (rendered as rclone’s key).
KeyMeaning
bucketBucket name.
rootSub-path within the bucket.
service_account_filePath to a service-account JSON file (optional).
service_account_credentialsSecret; the service-account JSON itself, as an alternative to the file.
KeyMeaning
rootKopia repository path.
passwordRepository password (passed to kopia via environment).
verify_files_percentPercentage in (0, 100] of snapshot file bytes kopia snapshot verify reads back on every sync. Default 10. Zero is rejected: a kopia leg gates offload as content-verified, so it must read real content.

A kopia destination rejects a crypt block, --dry-run, and --shallow. See Kopia.

Client-side content encryption via rclone’s crypt overlay (any non-local destination). See Encrypted (crypt).

KeyMeaning
passwordPlaintext encryption password; squirrel obscures it at render time. Secret.
password2Plaintext salt; optional but recommended. Secret.
obscuredtrue if password/password2 are already rclone-obscured (renders them verbatim; default false).

rclone’s own filename encryption stays off (filename_encryption = off, fixed by design). On the content-addressed and packed layouts squirrel instead names every artifact by a key derived from these passwords, so the destination discloses neither a path nor a content hash; on a mirror the replicated tree keeps your own names in clear. See Encrypted (crypt).

For layout = "content-addressed" or layout = "packed" destinations. See Content-addressed and Packed.

KeyApplies toDefaultMeaning
hash_algosftp, except a mirror without cryptsha256Which server-side hash the fingerprint uses. On a content-addressed or packed destination without crypt it names the command squirrel runs on the server — md5 (md5sum), sha1 (sha1sum), sha256 (sha256sum) or blake3 (b3sum) — and squirrel checks its answer against the bytes it sent. Behind crypt rclone runs it, and crc32, xxh3 and xxh128 are valid too; there the default applies to content-addressed only. A plain sftp mirror runs no command on the server, so the key is rejected there.
checkersrclone remotesrclone defaultCap rclone’s concurrent checkers (--checkers). Rejected on every local destination and every sftp one without crypt: squirrel writes those itself, without rclone.
force_path_styles3falsePath-style bucket addressing for squirrel’s own ETag reader (not the rclone transport).
pack_thresholdpacked—Files smaller than this are packed; at/above land as objects (e.g. 1MiB).
pack_sizepacked—Target size of one pack before it is closed (e.g. 512MiB).
zstd_levelpacked—zstd compression level, 1 fastest … 4 best.
verify_everycontent-addressed / packed, native mirroroffCadence for the agent to re-check what squirrel recorded storing on this destination — objects and packs against their upload fingerprints, a native mirror’s copies by size, mtime and (on a local disk) BLAKE3 — the same pass as squirrel verify, recorded as an audit run. Falls back to [agent] verify_every. Read-only; the agent never writes to the destination. Rejected on a mirror rclone writes.

Automatic index snapshots. Absent table = enabled with these defaults.

KeyDefaultMeaning
enabledtrueLocal snapshot-on-sync. false disables both halves.
dir<dir of db>/backupsLocal snapshot directory.
keep7Local snapshots kept (rotation; 0 = keep all).
cloudtrueRide a copy along to destination buckets.
cloud_keep7Snapshots kept per <dest>/<volume>/.squirrel-index/ (0 = keep all).

Required to run squirrel agent. Configures the unattended cadence (index_every, sync_every), scheduled audits, and an optional agent-specific db path (which takes precedence over the top-level db when the agent runs).

listen is optional. When set (e.g. 0.0.0.0:8443), the agent binds an HTTP server for peer syncs and the health endpoint, and a bearer token is required. When omitted, the agent runs its schedulers only — the listener-less mode for cadence-only machines that never receive peer syncs; [agent.auth] is then optional. See The agent.

KeyRequiredMeaning
listennoBind address, e.g. 0.0.0.0:8443. Omit for listener-less, scheduler-only mode (above).
dbnoAgent-specific index path; wins over the top-level db.
tls.certnoPath to the agent’s TLS certificate. Set together with tls.key; generate both with squirrel agent cert. Absent = plain HTTP.
tls.keynoPath to the matching private key.
auth.tokenwith listenShared bearer token. Required only when the agent binds an HTTP surface.
auth.peers.<name>.bearernoPer-peer bearer token this agent accepts from node <name>. Must equal that node’s [nodes.<this node>].auth.bearer; squirrel node pair emits both halves so they match by construction.
scan_intervalnoDrift-scan cadence over every hosted volume. Off when absent.
scan_strategynoshallow (default) or deep (re-hash everything — bit-rot detection).
verify_everynoFleet-wide default verify cadence applied to every content-addressed, packed or native mirror destination that declares no verify_every of its own. Off when absent.

A peer that runs its own agent. See Peer sync.

KeyRequiredMeaning
endpointyesPeer’s sync-API URL, e.g. https://nas.home:8443.
auth.beareryesBearer token this node presents to the peer.
tls.cert_fingerprintnosha256:<hex> pin for the peer’s self-signed cert.
dedup_strategynocopy (default) or off.
pull_durability_everynoCadence for the agent to pull this peer’s durability vectors (the same merge as squirrel peer-sync pull-durability), giving evidence freshness its own clock. Lets a receive-only node (one this machine never syncs to) keep its offload-gate evidence fresh unattended. The agent never rewinds a watermark. Off when absent.

endpoint is the whole of a peer’s reachability. The plan is negotiated over it and the bytes are streamed over it, on the same TLS connection with the same bearer token and the same optional certificate pin — so whatever you can verify about the peer’s identity covers the transfer too.

Earlier versions also needed a path: an SMB/NFS mount point or rclone remote prefix naming where this machine wrote bytes for the peer. It was a separate contract squirrel could only half-check — it could stat the local end, but a directory that existed and was not actually the peer’s storage looked identical to a correct one, and bytes landed somewhere the peer never saw. That key is gone. A config that still carries it is rejected at load time so the line gets deleted rather than silently ignored:

nodes.nas: path is obsolete: peer syncs now stream bytes over the node's endpoint, so there is no separate byte-path to configure — delete the line

Both sides must be running a squirrel that speaks peer-sync protocol v4 or later. An older peer is refused with an upgrade instruction rather than negotiated down: there is no byte-path left to fall back to, so continuing would plan a sync, move nothing, and fail every path at verification.