mirror of
https://github.com/restic/restic.git
synced 2025-01-03 05:35:43 +00:00
add forget safety net changelogs
This commit is contained in:
parent
82ca0030b7
commit
3f46808898
2 changed files with 21 additions and 0 deletions
13
changelog/unreleased/issue-4568
Normal file
13
changelog/unreleased/issue-4568
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Bugfix: Prevent `forget --keep-tags invalid` from deleting all snapshots
|
||||||
|
|
||||||
|
Running `forget --keep-tags invalid`, where the tag `invalid` does not
|
||||||
|
exist in the repository, would remove all snapshots. This is especially
|
||||||
|
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.
|
||||||
|
|
||||||
|
https://github.com/restic/restic/issues/4568
|
||||||
|
https://github.com/restic/restic/pull/4764
|
||||||
|
https://forum.restic.net/t/delete-all-snapshots-in-one-command-is-this-feature-intentional/6923/3
|
8
changelog/unreleased/pull-4764
Normal file
8
changelog/unreleased/pull-4764
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
Enhancement: Remove all snapshots using `forget --unsafe-allow-remove-all`
|
||||||
|
|
||||||
|
The forget command now supports the `--unsafe-allow-remove-all` option. It must
|
||||||
|
always be combined with a snapshot filter (by host, path or tag).
|
||||||
|
For example the command `forget --tag example --unsafe-allow-remove-all`,
|
||||||
|
removes all snapshots with tag `example`.
|
||||||
|
|
||||||
|
https://github.com/restic/restic/pull/4764
|
Loading…
Reference in a new issue