From 2585c68d168db819549f315e17ea336015c95cbc Mon Sep 17 00:00:00 2001 From: Kjetil Torgrim Homme Date: Tue, 14 Jan 2025 02:04:52 +0100 Subject: [PATCH] add hints about new functionality in documention --- doc/045_working_with_repos.rst | 3 +++ doc/060_forget.rst | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/045_working_with_repos.rst b/doc/045_working_with_repos.rst index d5f2240b8..2ca544d70 100644 --- a/doc/045_working_with_repos.rst +++ b/doc/045_working_with_repos.rst @@ -34,6 +34,9 @@ size of the contained files at the time when the snapshot was created. 590c8fc8 2015-05-08 21:47:38 kazik /srv 580.200MiB 9f0bc19e 2015-05-08 21:46:11 luigi /srv 572.180MiB +If you have many snapshots, you can restrict it to only snapshots made +the last week, using ``-newer-than 7d``. + You can filter the listing by directory path: .. code-block:: console diff --git a/doc/060_forget.rst b/doc/060_forget.rst index b211148cb..f0d45be34 100644 --- a/doc/060_forget.rst +++ b/doc/060_forget.rst @@ -353,7 +353,9 @@ Since restic 0.17.0, it is possible to delete all snapshots for a specific host, tag or path using the ``--unsafe-allow-remove-all`` option. The option 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``. +removes all snapshots with tag ``example``. Since restic 0.17.4, this +can be combined with an option like ``--older-than 1y`` to implement +a hard maximum retention for snapshots. Security considerations in append-only mode