snapdir defaults

Print default settings and arguments.

defaults prints the effective configuration: each resolved setting and its source, such as flag, env, or default. It is the quickest way to see what values the CLI will use before running a command, including cache, store, catalog, jobs, walk-jobs, clonefile, fsync, and transfer tuning.

Usage

snapdir defaults [OPTIONS]

Options

defaults takes no positional arguments. Pass any supported default-bearing option to preview how it resolves.

Option Description
--store <URI> Store URI whose effective source should be reported. Env: SNAPDIR_STORE.
--catalog <NAME> Catalog adapter whose effective source should be reported. Env: SNAPDIR_CATALOG; unset resolves to the default catalog, none disables catalog use.
--objects-store <URI> Shared object-pool store URI. Env: SNAPDIR_OBJECTS_STORE.
--cache-dir <DIR> Directory where the object cache is stored. Env: SNAPDIR_CACHE_DIR.
--walk-jobs <N> Max parallel file-hashing jobs during directory walks. Env: SNAPDIR_WALK_JOBS.
-j, --jobs <N> Max concurrent object transfers. Env: SNAPDIR_JOBS.
--limit-rate <RATE> Limit aggregate transfer bandwidth. Env: SNAPDIR_LIMIT_RATE.
--adaptive[=<FRACTION>] Adaptively tune transfer concurrency/bandwidth. Env: SNAPDIR_ADAPTIVE.
--max-jobs <N> Adaptive concurrency ceiling. Env: SNAPDIR_MAX_JOBS.
--max-retries <N> Total retry attempts per network request, including the first.
--retry-base-ms <MS> Base retry backoff delay in milliseconds.
--retry-max-ms <MS> Maximum retry backoff delay in milliseconds.
--max-requests <N> Cap request rate; 0/unset uses the backend default.
-q, --quiet / --no-progress / --color <WHEN> / --verbose Universal output-control options.

Examples

Print the effective defaults:

snapdir defaults

See how an environment override resolves:

SNAPDIR_CACHE_DIR=/var/snapdir/cache snapdir defaults

Preview a flag override and its source:

snapdir defaults --catalog none --walk-jobs 8

See also