Use this when deciding how long each backup type is kept.
Retention Policy
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.
1. Retention policy sets keep periods per data class.
2. Balance cost, compliance and recovery needs.
3. Separate short-term and long-term copies.
4. Delete data when allowed (privacy).
5. Review annually.
data class → retention rule → prune
Context & applicabilityCommon mistakes · platform/version boundaries
- Same retention for all data, regardless of value and legal needs.
- Retention policy not reflected in job settings.
- No process for legal holds.
- Personal data kept in backups far beyond policy, with no plan for handling erasure requests (document the backup exception).
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Retention balances recovery needs, legal rules and cost.
- Keeping data longer than needed increases risk.
- Immutable retention cannot be shortened later.
restic forget --dry-run ...— retention previewbackup policy document— ruleslegal/regulatory requirements— minimums
ReferenceHow it works1 section · depth on demand
Writing a retention policy
Define per data class: how many daily/weekly/monthly/yearly points, on which media, for how long, and legal holds. Align with law (bookkeeping, health records), contracts and GDPR (do not keep personal data longer than needed). Automate in backup software and review yearly; document exceptions.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
A retention policy states, per data type, how long restore points are kept, how often, and where.
| Data | Example policy | Driver |
|---|---|---|
| VMs | 14 daily, 8 weekly, 12 monthly | Operational recovery |
| Finance records | 5 years (Danish bookkeeping act: 5 years) | Legal |
| Per retention/archiving policy | Legal, e-discovery | |
| Personal data | No longer than necessary | GDPR |
Long retention is often cheaper on object storage or tape than on the primary repository. Retention must also be able to end: backups containing personal data that should have been deleted extend the GDPR exposure.
Example policy
| Data | Daily | Weekly | Monthly | Yearly |
|---|---|---|---|---|
| File servers | 30 days | 8 weeks | 12 months | — |
| ERP/finance | 30 days | 8 weeks | 12 months | 5 years (bookkeeping law) |
| 30 days | — | 12 months | — | |
| Dev/test | 7 days | — | — | — |
Retention must match legal requirements — the Danish Bookkeeping Act requires 5 years.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Backup Strategy → Retention Policy. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/34/r1/final · confidence 94%