Commit 8bd08fff authored by David Adam's avatar David Adam
Browse files

make remove_old remove more than one increment

parent a0a0baf7
......@@ -35,7 +35,8 @@ class Host(object):
raise e
def remove_old(self):
return run_rdiff('--remove-older-than', self.duration_to_keep, self.destination)
# even with force, only increments are removed, never the most recent backup
return run_rdiff('--remove-older-than', self.duration_to_keep, '--force', self.destination)
def run_backup(self):
return run_rdiff(*(self.run_backup_flags.split(' ') + [ '--include-globbing-filelist',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment