Skip to content

Preserve oldest snapshot when forget policies not satisfied #1036

Discussion options

You must be logged in to vote

If you want to keep monthly snapshots which are less then 2 month old, the keep-within-monthly option would be the right choice. Or, you tell rustic to keep 3 monthly snaphots knowing that in the beginning of a month the monthly snapshot is an early one.

Very simple adjustment to prevent it is (like restic) to not to remove the oldest snapshot if it does satisfy set policies. It creates sort of exception to algorithmic removal process but makes it much more human friendly.

Please run restic forget --dry-runfor your example. It will produce exactly the same result as rustic.

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by simonsan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1032 on February 02, 2024 12:47.