snapdir verify-cache

Verify the integrity of the local cache.

verify-cache checks every object in the local cache against its content address, detecting corruption across all staged snapshots at once. See Integrity.

Usage

snapdir verify-cache [OPTIONS]

Options

verify-cache takes no positional arguments. It accepts the global options; the most relevant are --cache-dir and --purge (drop objects with invalid checksums).

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