Skip to content

Commit

Permalink
Merge pull request #4600 from MichaelEischer/doc-forget-note-1
Browse files Browse the repository at this point in the history
Add a note that the oldest snapshot may be kept additionally
  • Loading branch information
MichaelEischer committed Dec 29, 2023
2 parents 23e1b4b + 12af20e commit 8f9a357
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/060_forget.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,13 @@ The ``forget`` command accepts the following policy options:
They also only count hours/days/weeks/etc which have one or more snapshots.
A value of ``-1`` will be interpreted as "forever", i.e. "keep all".

.. note:: All duration related options (``--keep-{within,-*}``) ignore snapshots
.. note:: All duration related options (``--keep-{within-,}*``) ignore snapshots
with a timestamp in the future (relative to when the ``forget`` command is
run) and these snapshots will hence not be removed.

.. note:: If there are not enough snapshots to keep one for each duration related
``--keep-{within-,}*`` option, the oldest snapshot is kept additionally.

.. note:: Specifying ``--keep-tag ''`` will match untagged snapshots only.

When ``forget`` is run with a policy, restic first loads the list of all snapshots
Expand Down

0 comments on commit 8f9a357

Please sign in to comment.