GuideInformationBusiness ContinuityIT

Review restic retention groups before counting snapshots to keep

Calculate retention against the selected host, path, and tag groups before enabling removal.

Paired infrastructure paths converging on a stable recovered service.
DSE visual intelligenceContinuity & recoveryGuide · 2 min read
Executive summary

What you need to know

Calculate retention against the selected host, path, and tag groups before enabling removal.

Potentially affected

This applies to the stable restic forget policy documented here. It addresses snapshot selection and grouping, rather than the separate space-reclamation behavior of prune or Proxmox garbage collection.

DSE recommendation

DSE recommends making an example inventory part of every retention-policy review.

Calculate retention against the selected host, path, and tag groups before enabling removal.

Source facts

Restic forget applies policy separately to snapshot groups, which by default are based on hostname and backed-up paths. The group-by option can change that grouping or disable it with an empty value. Tag filtering has its own logic: comma-separated tags in one argument require all those tags, while repeated tag arguments are combined as alternatives. A keep-last count therefore cannot be interpreted correctly without knowing both the selected snapshot set and the grouping used for policy application.

Source: restic — Removing Backup Snapshots.

Applicability

This applies to the stable restic forget policy documented here. It addresses snapshot selection and grouping, rather than the separate space-reclamation behavior of prune or Proxmox garbage collection.

DSE recommendation

DSE recommends making an example inventory part of every retention-policy review. Include more than one host, a changed source-path set, and the actual tag combinations used by automation. State whether the desired count applies independently to each group or across the selected set. Keep filtering and keeping rules visible together so reviewers do not approve a number without seeing what it counts. Preserve a preview of removals before any scheduled policy begins affecting production history.

Verification

On disposable snapshots, run a policy preview with the intended host, path, tag, and grouping options. Compare retained snapshots with a manually calculated inventory. Include a changed-path or renamed-host case, and retain the final command and review evidence before enabling automated removal.

Official reference

restic — Removing Backup Snapshots. Reviewed October 15, 2026.

Primary reference

Review the official source

restic — Removing Backup Snapshots · Verified October 15, 2026

Open official reference ↗
Plan the next step

Need help applying this guidance safely?

DSE can help confirm applicability, protect service continuity, and validate the result across physical security and IT systems.

Talk with DSE