How to set forget policy for all snapshots in repo? #1261
-
|
Hi there! Is it possible to set the repo-wide forget policy to not use "group-by tags"? e.g. I have a backup script that scans ZFS snapshots and tags each snapshot with the name of the ZFS counterpart, something like this: and I can't set it up such that I retain the last 7 backups in the repository, regardless of tag contents. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
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 So with your current tagging scheme, Practical options are:
So the short answer is: not through the current Backrest repo-wide Forget Policy UI/config, unless the tagging scheme is changed. |
Beta Was this translation helpful? Give feedback.
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 repoForgetPolicyschema only containsscheduleandretention. I don't see a field that maps to restic's group-by setting.So with your current tagging scheme,
--keep-last 7is effectively applied per tag group. If every ZFS snapshot gets a unique tag, that prevents the behavior you want.Practical options are:
restic f…