Skip to main content

Retention and Cleanup Cheatsheet

# preview retention changes (always)
restic snapshots

# preview retention changes
restic forget --keep-daily 7 --keep-weekly 4 --dry-run

# apply retention and reclaim space
restic forget --keep-daily 7 --keep-weekly 4 --prune

# verify after retention
restic snapshots
restic check

# remove stale locks
restic unlock

# integrity checks
restic check
restic check --read-data-subset=10%

Common Gotchas

GotchaWhat happensFix
Forget without --dry-runyou remove snapshots you still needalways preview first
Retention too aggressiverollback window disappearsstart small, expand later
Unlock while a job is runningcan corrupt backup processconfirm no active process first

Next