Removing older Duplicity backups

Just found this via Google:

NOTE: duplicity does not allow you to run a backup (full or otherwise) on the same command line as a –remove-older-than. Your –remove directive will need to be run from a separate duplicity command.

Unfortunately, this is not documented on the man page of duplicity. At least I did not find it there. On the other hand, this seems to be the answer to the question, why the hard disks of some of my servers got out of space so often. This is now fixed on all servers (that are already using duplicity for backup; The majority still uses some ugly shell scripts with a lot of gpg and rsync hacks). We actually kept several full and a number of incremental backups from the last 6 months for the duplicity servers. This seems to be a bit overkill, I guess. And more importantly: It does not scale very well. Back to 2 months now… What shall we do with all the free disk space now?

Shameless plug: If this post was useful to you, please consider buying yourself something from one of my Amazon stores: US store, UK store, FR store, DE store, CA store. If you're not into Amazon, why not donate something to GNOME, Mozilla or Wikipedia? Thank you!

Leave a Reply