mirror of
https://github.com/restic/restic.git
synced 2024-12-23 00:07:25 +00:00
Document refusal to process empty forget policy.
This commit is contained in:
parent
5a9c7c51e6
commit
71a4ccea71
1 changed files with 6 additions and 0 deletions
|
@ -188,6 +188,12 @@ All the ``--keep-*`` options above only count
|
|||
hours/days/weeks/months/years which have a snapshot, so those without a
|
||||
snapshot are ignored.
|
||||
|
||||
For safety reasons, restic refuses to act on an "empty" policy. For example,
|
||||
if one were to specify ``--keep-last 0`` to forget *all* snapshots in the
|
||||
repository, restic will respond that no snapshots will be removed. To delete
|
||||
all snapshots, use ``--keep-last 1`` and then finally remove the last
|
||||
snapshot ID manually (by passing the ID to ``forget``).
|
||||
|
||||
All snapshots are evaluated counted against all matching keep-* counts. A
|
||||
single snapshot on 2017-09-30 (Sun) will count as a daily, weekly and monthly.
|
||||
|
||||
|
|
Loading…
Reference in a new issue