Skip to content
Discussion options

You must be logged in to vote

From the current code, I don't think this is configurable for the repo-level Forget Policy.

The repo-level scheduled forget path calls restic with --group-by tags, and the repo ForgetPolicy schema only contains schedule and retention. I don't see a field that maps to restic's group-by setting.

So with your current tagging scheme, --keep-last 7 is effectively applied per tag group. If every ZFS snapshot gets a unique tag, that prevents the behavior you want.

Practical options are:

  • do not store the per-ZFS-snapshot name as a restic tag if repo-level retention should ignore it;
  • keep only stable grouping tags, then let Backrest's repo-level policy handle retention;
  • or run a separate restic f…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by the-emerald
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants