From 8bd08fffc041080194c37f864686a439f41942cd Mon Sep 17 00:00:00 2001 From: "David Adam (zanchey)" <zanchey@ucc.gu.uwa.edu.au> Date: Wed, 21 Dec 2011 21:57:26 +0800 Subject: [PATCH] make remove_old remove more than one increment --- rdiff-manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rdiff-manager.py b/rdiff-manager.py index ad3c08b..4524cb1 100755 --- a/rdiff-manager.py +++ b/rdiff-manager.py @@ -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', -- GitLab