Prune backups based on tag + count

We’re using duplicacy to backup VMs. Each VM backup is tagged with the id of the VM.

I would be nice to be able to prune backups for a specific tag but keep the last N of them.

eg.

backup prune --keep <tag>:<count>

backup prune --keep vm-1:2 would prune all backups but the last 2 with tag ‘vm-1’ .

1 Like