snapdir verify

Verify the integrity of a snapshot in a store.

verify checks a snapshot in a --store: it loads the manifest named by --id and re-hashes every referenced object against the manifest checksums. See Integrity.

Usage

snapdir verify [OPTIONS]

Options

Option Description
--store <URI> Store URI to verify. Env: SNAPDIR_STORE.
--id <ID> Snapshot ID to verify.
--cache-dir <DIR> Directory where the object cache is stored. Env: SNAPDIR_CACHE_DIR.
--purge Purge objects with invalid checksums.
--force Force an action to run.
--dryrun Run without making changes.
-q, --quiet / --no-progress / --color <WHEN> / --verbose Universal output-control options.

Examples

Verify a snapshot by ID in a store:

snapdir verify --store s3://my-bucket/snapshots --id 1220abc...

Verify and purge any objects that fail their checksum:

snapdir verify --store file:///srv/backups --id 1220abc... --purge

See also