Forrest logo
back to the duplicacy tool

duplicacy:tldr:51601

duplicacy: Prune revisions, keeping one revision every `n` days for all revisions older than `m` days.
$ duplicacy prune -keep ${n:m}
try on your machine

The "duplicacy prune" command is used with the Duplicacy backup software to remove old and unnecessary snapshots from the backup repository.

The "-keep" flag is used to specify the number of snapshots to retain based on a certain pattern. In this case, the pattern is "${n:m}".

The "${n:m}" pattern refers to a range of snapshots to be kept. "n" represents the number of the most recent snapshots to keep, while "m" represents the number of snapshots to count from the beginning.

For example, if you run the command "duplicacy prune -keep 7:30", it means that you want to keep the most recent 7 snapshots and count 30 snapshots from the beginning to determine which snapshots should be kept. Any snapshots falling out of this range will be pruned or deleted from the backup repository.

By adjusting the values of "n" and "m", you can customize how many snapshots are retained during the pruning process according to your backup needs.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the duplicacy tool