snapdir verify-cache

Verify the integrity of the local cache.

verify-cache checks every object in the local cache against its content address, detecting corrupt objects and missing objects referenced by cached manifests. See Integrity.

Usage

snapdir verify-cache [OPTIONS]

Options

verify-cache takes no positional arguments.

Option Description
--store <URI> Store URI accepted by the cache-management surface. Env: SNAPDIR_STORE.
--id <ID> Limit verification to a snapshot ID.
--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 the default cache:

snapdir verify-cache

Verify a specific cache directory and purge corrupt objects:

snapdir verify-cache --cache-dir /var/snapdir/cache --purge

See also