1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 00:07:25 +00:00
restic/changelog/0.17.0_2024-07-26/issue-4568

17 lines
737 B
Text
Raw Normal View History

2024-07-22 22:19:22 +00:00
Bugfix: Prevent `forget --keep-tags <invalid>` from deleting all snapshots
2024-05-18 22:26:12 +00:00
2024-07-22 22:19:22 +00:00
Running `forget --keep-tags <invalid>`, where `<invalid>` is a tag that does
not exist in the repository, would remove all snapshots. This is especially
2024-05-18 22:26:12 +00:00
problematic if the tag name contains a typo.
The `forget` command now fails with an error if all snapshots in a snapshot
group would be deleted. This prevents the above example from deleting all
snapshots.
2024-07-22 22:19:22 +00:00
It is possible to temporarily disable the new check by setting the environment
variable `RESTIC_FEATURES=safe-forget-keep-tags=false`. Note that this feature
flag will be removed in the next minor restic version.
2024-07-22 22:19:22 +00:00
https://github.com/restic/restic/pull/4568
2024-05-18 22:26:12 +00:00
https://github.com/restic/restic/pull/4764