1
0
mirror of https://github.com/restic/restic.git synced 2024-07-05 09:10:56 +02:00

Merge pull request #4820 from MichaelEischer/forget-extend-descritpion

forget: explain oldest snapshot special case in command help
This commit is contained in:
Michael Eischer 2024-05-26 10:04:43 +00:00 committed by GitHub
commit 619ce8bfa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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