explainer / Nov 2, 2026
Restic Retention Has a Storage Cost Beyond Snapshot Count
Keeping fewer backup snapshots does not guarantee a smaller repository. Understand shared data, retention groups and the working space pruning needs.

A Restic retention policy chooses which recovery points survive; it does not set a hard storage quota. Removing snapshots and reclaiming the data they no longer need are separate operations. For a homelab backup target, the useful capacity question is not simply how many snapshots fit, but how much unique history remains and how much room maintenance needs.
This explainer concerns Restic repositories, including those held on a home server or NAS. It is not a deletion procedure. The linked stable documentation currently describes Restic 0.19.1; check the documentation for an older installed version before changing maintenance options.
A snapshot is a recovery view, not another full copy
Restic records a point-in-time view of the backed-up files. Its deduplication means snapshots can share data already present in the repository. The backup documentation distinguishes the files processed from the data actually added.
That distinction matters when estimating storage. A largely unchanged archive can accumulate recovery points without adding another complete copy each time. A workload that repeatedly replaces substantial content can retain much more unique history. Snapshot count alone cannot distinguish those workloads.
Conversely, forgetting an old snapshot does not make every file visible through it disposable. If a retained snapshot still needs the same underlying data, that data must remain. Do not promise a particular amount of reclaimed space from the number of snapshots selected for removal.
Selection and reclamation answer different questions
The retention documentation assigns snapshot removal to forget and unreferenced-data removal to prune. Combining them with an option does not make them the same decision.
First comes the recovery decision: which dates and backup sets must still be available? Only afterward comes the storage decision: what data is no longer required by any surviving snapshot? A successful snapshot-removal operation is therefore not evidence that the disk has already shrunk.
There is another reason repository size and snapshot count can diverge. The Restic FAQ explains that interrupted backups can leave uploaded data available for reuse on a later attempt, even without a completed snapshot. The snapshot list is not a complete inventory of every stored byte.
Read retention as a policy for each backup set
By default, policy-based forgetting groups snapshots by hostname and backed-up paths, then evaluates each group separately. A policy on a repository shared by several machines is not automatically a single repository-wide snapshot limit. Changing a machine's recorded hostname or backup paths can also matter when interpreting those groups.
Calendar policies are easy to misread. Daily retention counts days containing snapshots, rather than inventing a recovery point for a day when no backup ran. Multiple keep rules can overlap, and a snapshot survives if it satisfies a keep rule. A daily rule plus a monthly rule does not imply a simple sum of distinct recovery points.
For planning, record these separately:
- Which hosts and path sets the policy covers.
- Which recovery dates matter when damage is discovered late.
- Whether missed backups leave unacceptable gaps.
- Which storage measurements describe the repository rather than the original files.
A reviewed dry-run of the proposed policy helps expose selection mistakes. It cannot prove that retained backups contain every required file or that an application will restore correctly.
Repacking needs room before it returns room
Restic stores data in pack files. A pack may contain both still-needed and unused data. Pruning can leave a partially used pack in place or repack its useful contents, depending on the pruning options. The official documentation notes that repacking a remote repository can require downloading existing packs and uploading the retained data.
The replacements are stored before obsolete packs are removed. Consequently, a nearly full backup target can lack the working space needed to reclaim space normally. Waiting for a disk-full alarm before thinking about retention is a poor operating model.
The tuning trade-off is not simply maximum compression versus wasted space. More aggressive reclamation can demand more transfer, processing and temporary capacity. Restic offers limits on repacking and tolerated unused data, but their appropriate values depend on the repository and available maintenance window. No universal spare-space percentage is established here.
Deletion authority belongs in the maintenance design
Pruning locks the repository, so the documentation advises scheduling it away from normal backups. Capacity planning therefore includes time when backup completion may be blocked, not only disk space.
Permissions matter too. Snapshot removal and pruning need read, write and delete access. An append-only backup client is deliberately not the right place to grant that authority merely to make cleanup convenient. Restic recommends a separate, well-secured maintenance client for such repositories. Its documentation also warns that attacker-created snapshots can influence retention selection; append-only storage alone does not make every retention policy safe.
Before any destructive maintenance, keep an independent recovery option and review the exact retention outcome. This article intentionally provides no shortcut for deleting repository files manually. Once unique data has been pruned, changing a keep rule back does not recreate it.
Judge the outcome by recoverability and headroom
A sensible review asks whether the intended recovery points remain, whether repository maintenance completed, and whether enough capacity remains for the next backup and maintenance cycle. Those are different observations. A smaller repository can still contain the wrong history; a larger one can legitimately preserve shared data needed by retained snapshots.
Restic recommends checking repository structure after pruning. That check complements, rather than replaces, a restore exercise using the files and application data that actually matter. Choose retention from recovery needs, then measure its storage consequences. Do not choose a snapshot count merely because it makes the list look tidy.
Verification ledger