Issue #3624: Preserve oldest snapshot when keep-* values are not satisfied

This commit is contained in:
Gautam Menghani
2023-06-16 23:13:41 +05:30
committed by Michael Eischer
parent 4df77e9f26
commit 182b9796e4
5 changed files with 66 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
Enhancement: Keep oldest snapshot when there aren't enough snapshots
The `forget` command does not preserve the oldest snapshot incase the
keep-* parameters are not satisfied, which led to users not being able to
preserve old data. Now, restic will always preserve the oldest snapshot
whenever any of the keep-* options to the `forget` command are not
satisfied.
https://github.com/restic/restic/issues/3624
https://github.com/restic/restic/pull/4366
https://forum.restic.net/t/keeping-yearly-snapshots-policy-when-backup-began-during-the-year/4670/2