forget: Error when invalid unit is given in duration policy

This commit is contained in:
Leo R. Lundgren
2022-08-10 00:38:53 +02:00
parent f0bb4f8708
commit 6f517858e8
3 changed files with 25 additions and 11 deletions

View File

@@ -0,0 +1,8 @@
Bugfix: Yield error on invalid policy to `forget`
The `forget` command previously silently ignored invalid/unsupported
units in the duration options, such as e.g. `--keep-within-daily 2w`.
Specifying an invalid/unsupported duration unit now results in an error.
https://github.com/restic/restic/issues/3861