1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-03 18:27:01 +00:00
This commit is contained in:
Jonas Borgström 2011-08-16 22:17:27 +02:00
parent 143a393750
commit c791bf574b

View file

@ -249,7 +249,7 @@ def do_purge(self, args):
if args.monthly:
keep += purge_split(archives, '%Y-%m', args.monthly, keep)
if args.yearly:
keep += purge_split(archives, '%Y', args.weekly, keep)
keep += purge_split(archives, '%Y', args.yearly, keep)
keep.sort(key=attrgetter('ts'), reverse=True)
to_delete = [a for a in archives if a not in keep]