CLI commands
ak backups verify
Recompute manifest hashes and report ok | corrupt
ak backups verify
Recompute manifest hashes and report ok | corrupt
Synopsis
What it does:
Recompute the sha256 of every file under the snapshot's data/ tree and compare against the recorded hash. Reports ok only when all entries match.
Who it's for: Power devs validating that a snapshot is safe to restore; CI integrity checks.
When to use it:
Before ak backups restore; periodic audits.
Examples: ak backups verify 20260426T123005Z-deadbeef ak backups verify 20260426T123005Z-deadbeef --json
What changes on disk: Read-only.
Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)
Exit codes: 0 success 1 runtime error 2 invalid flags 3 user-cancel (SIGINT, prompt-cancel) 5 snapshot id not found 1 snapshot is corrupt
ak backups verify <id> [flags]Options
-h, --help help for verify
--json Emit machine-readable JSON (implies --no-interactive)
--no-interactive Disable interactive prompts (CI-safe)
-q, --quiet Suppress non-error output on stderr
-V, --verbose Extra diagnostic output on stderr (loses to --quiet)
-y, --yes Assume yes for all promptsSEE ALSO
- ak backups - Manage rollback snapshots