Problem with Retention and Forget #255
Replies: 3 comments 1 reply
-
Hi! Would you be able to post a Thanks 😉 |
Beta Was this translation helpful? Give feedback.
-
Thanks! Sure, here is the dry-run:
|
Beta Was this translation helpful? Give feedback.
-
@bauerbyter, when you list the remaining snapshots, do all of them have the same paths as specified in the forget command line?
E.g. if you add paths later, existing snapshots with less paths would remain in the repo because they will then not satisfy the condition. You can prevent this by using tags or fix it by temporarily disabling the paths filter ( To use tags instead of paths: backup:
tag: "{{ .Profile.Name }}"
retention:
path: false
tag: true Note: If you don't use any tag or path filter, restic would still apply forget to groups of snapshots. By default it groups them by "host,paths" this means it keeps a unique set of snapshots matching the retention policy for every unique value of the group-by condition. Grouping can be disabled.. but it is safer to keep it enabled, especially when repositories are reused with multiple profiles and hosts. |
Beta Was this translation helpful? Give feedback.
-
Hey,
I have this following profile running for some time and absolute love how easy it is. Thanks for the good work :-)
But one thing is not working as expected (but probably a mistake from my side): It is not forgetting snapshots.
I thought that this "keep-daily: 7 keep-weekly: 4" means that it will keep the last 7 days and one from each of the last 4 weeks. Am I Wrong?
But if I see the list of snapshots not one is "missing".
What do I do wrong?
Thanks in advance :-)
Beta Was this translation helpful? Give feedback.
All reactions