Config file & volumes
Squirrel is configured via a TOML file at ~/.squirrel/config.toml. Override the
location with --config <path> or the SQUIRREL_CONFIG environment variable.
Every volume and destination squirrel touches must be declared there — there is no implicit “just point at a directory” mode. Unknown fields, missing required fields, and unset environment variables are rejected immediately.
A minimal config
Section titled “A minimal config”db = "~/.squirrel/index.db"
[volumes.pictures]path = "~/Pictures"sync_to = ["nas", "offsite"]
[volumes.docs]path = "~/Documents"sync_to = ["nas"]The database
Section titled “The database”db = "~/.squirrel/index.db"db is the path to the SQLite index database. It is created on first use and
migrated forward on every open. Resolution precedence for the database path is:
- the
--dbflag, - the
dbfield in config, - the built-in default
$HOME/.squirrel/index.db.
Storage is SQLite via the pure-Go modernc.org/sqlite; WAL mode is enabled at
open.
Volumes
Section titled “Volumes”A volume is a named local directory that squirrel indexes and syncs. Each
volume declares a path and, optionally, the destinations it syncs to.
[volumes.pictures]path = "~/Pictures"sync_to = ["nas", "offsite"]| Key | Required | Meaning |
|---|---|---|
path | yes | Absolute (or ~-relative) path to the volume’s root directory. |
sync_to | no | List of destination names to push to. A volume with no sync_to can still be indexed and can drive a hook. |
offload_requires | no | Per-volume offload policy — targets whose durability must cover a file before its local bytes may be deleted. |
offload_max_evidence_age | no | Optional staleness bound on offload durability evidence. |
[volumes.<name>.hook] | no | A per-volume hook command. |
List the volumes squirrel knows about:
squirrel volumesSymlinks are skipped during indexing.
Precedence & environment
Section titled “Precedence & environment”--config <path>or$SQUIRREL_CONFIGoverrides the default config location.--db <path>overrides thedbfield for a single invocation.
Next steps
Section titled “Next steps”- Destinations & secrets — declare where volumes sync to.
- Index snapshots — automatic redundancy for the catalog itself.
- Configuration reference — every config key in one place.