Howto delete the oldest backup?


In my backup set, I have defined the backup retention as “Keep a specific number of backups: 200”. Now, the free space on the local backup filesystem is nearly 0 though the current number of kept backups is just 193. The next backup will likely run out of free space on the backup filesystem. So I could change the specific number of backups to be kept to 192.

BUT: Will duplicati free the oldest backup at the beginning of its next regular backup job? Or will it free the oldest backup at the end (in which case it could be too late)?

Additionally, is there a possibility to tell duplicati (GUI variant) to just delete the oldest backup and do nothing else, such that I can see in advance if there will be enough free space on the backup filesystem for the next regular backup job?

Thanks for your help,

Older backup versions are pruned at the end of the backup job.

You can manually remove versions with the DELETE command. Click your backup set in the web UI, then click Command Line, select Delete from the dropdown, and then REPLACE the contents of the Command Line Arguments box with:


where X is the version number to delete. You can also delete a range of versions by using --version=X-Y

0 (zero) is the most recent version, and if you have 192 versions right now, 191 would be the oldest version, so you could put this in the Command line field:




Then click the “Run delete command now” button at the bottom.

Important - Note that because of deduplication, this may free up very little space. Each version really only contains the changed blocks/bytes. So the only space that could be freed up are blocks/bytes of files that are not referenced by any other version.

ALSO note that free space isn’t reclaimed until a COMPACT operation runs. Duplicati normally decides when to do this operation on its own, and the operation usually does require some free space!! Is there any way you can increase free space on the back end while you work to delete some backup versions?

Try not to get that. If backup has a schedule, maybe you can uncheck today and a few upcoming days.
While it’s tricky working in an almost-out-of-space environment (what is free now?), all-out is tricky too.