Command reference
snapdir creates content-addressable directory snapshots. Every subcommand
shares a common set of global options and reads the same SNAPDIR_* environment
variables. This page documents that shared surface; each subcommand has its own
page linked below.
snapdir [OPTIONS] <COMMAND>
Commands
Global options
These options are accepted by every subcommand.
Environment variables
Each global option above that is backed by an environment variable lists it
inline. The full set of SNAPDIR_* variables honored by the CLI:
Run snapdir defaults to print the effective settings,
including every SNAPDIR_* variable currently in your environment.
Retries & backoff
On transient failures — HTTP 429/503, S3 SlowDown, GCS RESOURCE_EXHAUSTED,
and network timeouts — snapdir retries the request with full-jitter exponential
backoff (--max-retries / --retry-base-ms / --retry-max-ms). When the server
sends a Retry-After header, snapdir honors it as a floor: it never retries sooner
than the server asked, but may wait longer if the jittered backoff is larger.
Non-transient errors — 404, 403, missing objects, or bad credentials — fail fast
without retrying. The storage SDKs' own retry logic is disabled, so this is the single
retry policy for every backend. The per-backend request and bandwidth caps,
--max-requests, and --limit-rate are covered in the
Stores guide.
Stores
The --store URI selects a backend by scheme. Built-in schemes are dispatched to
matching snapdir-<scheme>-store shims:
See Stores and cache and the Stores guide for details.