Storage · Backup Strategy
Retention Policy
Cheat sheet · https://pcornel.dk/topic.php?topic=4268
Answer
A retention policy defines how long each backup copy is kept — for example 14 dailies, 8 weeklies and 12 monthlies — balancing recovery needs, legal requirements and storage cost.
Remember
- Retention balances recovery needs, legal rules and cost.
- Keeping data longer than needed increases risk.
- Immutable retention cannot be shortened later.
First checks
restic forget --dry-run ...— retention previewbackup policy document— ruleslegal/regulatory requirements— minimums
Verify in this order
data class → retention rule → prune
Where it usually breaks
First mismatch in source consistency → capture/journal → transport → repository/replica → catalog/checkpoint → restore/failover read-back; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4268