DeleteEnoughToFinish

From RdiffBackupWiki

Jump to: navigation, search

it has been expressed that a way to tell rdiff-backup to remove enough old stuff to allow the current run to finish would be good.

This involves several nasty complexities, like figuring out how much space is needed in advance of running out.

-- Andrew Bressen <bressen@savannah.nongnu.org>


Yes, people have asked for this, but I don't see any way of actually doing it.

-- Ben Escoto


I think that is not necessary to know in advance how much space is needed. Just have a parameter that fixes a threshold (like 20 MBytes) and when there are <3D free space, start deleting (all the files) from then oldest backup until there in enought free space.


-- Marco Menardi


The above suggestion is for a required minimum of free space. An alternative suggested on the mailing list is that when rdiff-backup runs out of space, it blows away an increment and tries again. If there still isn't enough space, it blows away another, and so on, until it either finishes or hits a preset limit of the minimum number of backups to retain.

This could be further embellished by telling it to blow away certain files down to certain retention levels in addtion to working at the granularity of increments. This would require some of the MetadataDiddling features to be implemented. --bressen


I had the same problem and wrote the following simple shell script to remove old increments until disk usage is below a given limit: LimitDiskUsage - kolja



Back to SuggestedFeatures

Personal tools