From 2c7ebf4c7fdb124132dfc9b2b8b15eac0eb88a7f Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 25 May 2024 15:10:21 +0200 Subject: [PATCH] forget: explain oldest snapshot special case in command help --- cmd/restic/cmd_forget.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/restic/cmd_forget.go b/cmd/restic/cmd_forget.go index 9c40b1d09..4fd931ff0 100644 --- a/cmd/restic/cmd_forget.go +++ b/cmd/restic/cmd_forget.go @@ -21,6 +21,9 @@ var cmdForget = &cobra.Command{ The "forget" command removes snapshots according to a policy. All snapshots are first divided into groups according to "--group-by", and after that the policy specified by the "--keep-*" options is applied to each group individually. +If there are not enough snapshots to keep one for each duration related +"--keep-{within-,}*" option, the oldest snapshot in the group is kept +additionally. Please note that this command really only deletes the snapshot object in the repository, which is a reference to data stored there. In order to remove the