Backup Retention and Recovery Trade-Offs
Choose snapshot retention from the recovery points your organization needs, then preview restic's policy on each actual snapshot group. Forget removes snapshot references; prune separately reclaims unreferenced repository data and can affect backup operations and storage charges.
Keep the recovery points your organization may need, not an arbitrary number of backups. Translate those needs into a policy, preview its effect on the actual repository and test a restore before deleting anything. Restic's forget and prune operations do different work, and neither guarantees a particular reduction in your storage bill.

Start with recovery needs and boundaries
Ask how far back an operator may need to recover after accidental deletion, corruption discovered late, an unsuccessful release or a security incident. Determine the acceptable age of recovered data separately from the period for which historical points remain available. A long retention period does not compensate for backups that happen too infrequently, and frequent snapshots do not ensure that an old clean copy exists.
Document the systems covered, data owner, required backup frequency, earliest useful recovery point, access controls and any legal preservation obligations. Agree who can authorize changes or exceptions. Consider which database exports, uploaded files, configuration, encryption passwords and external systems must be recovered together. NIST's contingency-planning guidance, viewed 29 November 2026, places recovery requirements and priorities within a broader plan; the exact retention values remain an organizational decision.
Retention is not immutable storage. If a backup writer or administrator can delete the underlying repository, the presence of a retention policy alone does not prevent destructive access. Evaluate independent custody, permissions and separately managed copies as part of the threat model, and test that the recovery team can obtain the required encryption and storage credentials without the original host.
| Decision | What to choose | Trade-off or evidence |
|---|---|---|
| Recovery horizon | Oldest useful recovery point | Longer history usually increases retained data |
| Snapshot frequency | Interval suited to acceptable data loss | Missed jobs may widen the real gap |
| Daily selections | Recent days with usable snapshots | Count means occupied days, not necessarily consecutive days |
| Weekly selections | Older weekly reference points | Weeks overlap daily selections |
| Monthly selections | Longer historical coverage | Calendar and overlap affect total kept |
| Grouping | Inspect host and backup paths | Policy applies separately to each group by default |
| Dry run | Preview forget on actual inventory | Review the exact keep and remove lists |
| Prune window | Schedule away from backup jobs | Repository locking can delay backups |
| Storage class | Price active, deleted and read data | Duration minima and requests can matter |
| Restore proof | Recover a representative retained point | Verify application and data together |
Understand the selection rules
The restic forget documentation, viewed 29 November 2026, describes policies such as keep-daily, keep-weekly and keep-monthly. For each selected occupied calendar period, the most recent snapshot is kept. Days and weeks follow natural calendar boundaries; weeks run Monday through Sunday. The rules are combined as a union: a snapshot qualifying for more than one rule is retained once.
The count-based rules select the last specified number of periods that actually have snapshots. If a backup job misses several days, seven occupied days can cover more than seven calendar days; the policy does not create missing snapshots. Duration-based options such as keep-within-daily answer a different question, selecting eligible daily points within a duration relative to the latest snapshot. Select between the two deliberately rather than treating their names as interchangeable.
By default, restic groups snapshots by host and paths before applying the policy to each group. Renaming a host or changing a backup path can create additional groups, each with its own retained set. Review the exact inventory and the impact of any explicit grouping or filtering; merging groups just to shrink a report can discard recovery points for another system.
See how overlap changes snapshot counts
The chart is a worked example, not a promise of what any live repository retains. Assume one snapshot at the same time every day for more than two years, a single host and path group, no extra tags or future-dated snapshots, and a policy run after the snapshot on Sunday 29 November 2026. Apply each stated rule to the same complete inventory. The newest Sunday is selected by both daily and weekly rules, and the current month's latest snapshot overlaps the recent selections.
Retained snapshots in one daily-backup example
One daily snapshot per group through Sunday 29 November 2026; calculated union of restic keep rules
- 7 daily7
- 7 daily + 4 weekly10
- 7 daily + 4 weekly + 12 monthly21
- 14 daily + 8 weekly + 24 monthly43
View chart data
| Item | snapshots retained | Note |
|---|---|---|
| 7 daily | 7 | |
| 7 daily + 4 weekly | 10 | |
| 7 daily + 4 weekly + 12 monthly | 21 | |
| 14 daily + 8 weekly + 24 monthly | 43 |
Under those assumptions, seven daily points alone produce seven snapshots. Seven daily plus four weekly produce ten: the newest weekly point is already in the daily set. Adding twelve monthly points produces 21: the current month's selected snapshot is already kept, and the remaining eleven are distinct in this particular calendar. Fourteen daily plus eight weekly plus 24 monthly produce 43: two weekly and the current monthly selection overlap the daily set. Different run dates, missing snapshots, multiple daily snapshots or different groups can change these results.
Do not read the bars as storage usage or as a fixed number of days guaranteed by each policy. A snapshot can share data with many other snapshots, and a single day may contain more than one snapshot. Restic's backup documentation explains snapshot creation and deduplication; physical growth depends on changes, compression, metadata and the actual repository history.
Preview forget and schedule prune safely
Start by listing snapshots, noting their groups and recording any protected or legally held points. Run the intended restic forget --dry-run with the complete, approved keep options and the intended repository and filters. Review the output for every group, including snapshots marked for removal; do not assume the newest visible group represents all applications. Repeat the preview after changing a hostname, path, tag or policy.
Once the owner approves the actual removal, follow the documented operational procedure and preserve the preview and decision record. Forget removes snapshot records, but data referenced only by those snapshots remains in the repository until prune reclaims it. Shared data still referenced by a retained snapshot cannot be removed merely because another snapshot was forgotten. Forgetting a needed snapshot is destructive: a subsequent prune can make recovery of its unique data impossible.
Prune can be lengthy, and the restic documentation warns that the repository is locked during pruning and backups cannot complete. Schedule it around backup windows, monitor completion and follow the recommendation to run a repository check after pruning. Do not confuse a structural check with a full application restore; both answer useful but different questions. Test the resulting policy and pruning routine on an isolated repository before applying it to critical data.
Budget stored data and operations separately
Estimate the average stored volume from real backup history and expected change rate, not by multiplying snapshot count by the application's full size. Model changed data, compression, deduplication, temporary growth during maintenance, any second copy and the amount downloaded for tests. Record assumptions and revise the forecast against provider invoices. A retention extension may be affordable for mostly unchanged data but costly for large, frequently replaced files.
Object-storage bills can include capacity, request classes, retrieval and data transfer. Cloudflare R2 pricing, viewed 29 November 2026, distinguishes Standard and Infrequent Access charges and documents a minimum duration for Infrequent Access objects. Wasabi's pay-as-you-go FAQ describes its 90-day minimum duration and minimum monthly storage charge. Early deletion or repacking can therefore have billing consequences even when the live repository becomes smaller.
Model the read and write operations performed by backup, integrity checks, prune and restore drills as separate line items. Review whether provider versioning or object retention leaves old objects billable and whether storage-level immutability is compatible with your maintenance procedure. Do not promise an immediate bill reduction from deleting snapshots. Ask the provider or run a small authorized billing experiment if exact effects are unclear.
Verify retention through recovery
After the policy has operated, select a representative older point and restore it into an isolated environment. Confirm that its timestamp and contents meet the intended scenario, then restore a compatible database and test a safe application journey. Restic's restore instructions document selection and target behavior; restore can overwrite existing files, so use an empty test destination rather than production.
Keep evidence of the snapshot ID, actual recovery point, elapsed time, missing data and corrective actions. Revisit the policy after application changes, a provider migration, an incident or an altered legal requirement. An old snapshot is useful only if its data, keys, compatible tooling and the people authorized to restore it remain available.
For example, after configuring the intended repository securely, an operator can preview restic forget --dry-run --keep-daily 7 --keep-weekly 4 --keep-monthly 12. This is a preview only: check every displayed group and the proposed removals with the owner before any destructive run. Keep a dated record of the exact options and filters, and rerun the preview if snapshots or grouping change before approval. A copied command without the intended repository context is not a safe retention procedure.
See key ownership for independent access and the restore drill for an end-to-end exercise. Sora Panel is not released yet; read how it works.
Frequently asked questions
Does keep-daily 7 guarantee seven consecutive days?
No. It selects the latest snapshot in each of the last seven days that contain snapshots. Missed backups can make those dates nonconsecutive.
Does forgetting a snapshot immediately free storage?
No. Forget removes the snapshot reference; prune reclaims data no longer referenced by any remaining snapshot. Provider billing and minimum durations can delay or change the savings.
Why are daily and weekly counts not simply added?
A single snapshot can satisfy both rules, and restic retains it once. Actual overlaps depend on the calendar and available snapshots.
Can retention protect against an attacker with storage access?
Not by itself. Assess whether the attacker can delete objects or credentials, and consider independently administered protection and copies.
Sources
- NIST contingency planning (viewed 2026-11-29)
- restic forget and prune (viewed 2026-11-29)
- restic backup (viewed 2026-11-29)
- Cloudflare R2 pricing (viewed 2026-11-29)
- Wasabi pricing FAQ (viewed 2026-11-29)
- restic restore (viewed 2026-11-29)
Sora Panel is not released yet. Read how it works on the homepage.