mirror of https://github.com/borgbackup/borg.git
Fix typo
This commit is contained in:
parent
143a393750
commit
c791bf574b
|
@ -249,7 +249,7 @@ class Archiver(object):
|
||||||
if args.monthly:
|
if args.monthly:
|
||||||
keep += purge_split(archives, '%Y-%m', args.monthly, keep)
|
keep += purge_split(archives, '%Y-%m', args.monthly, keep)
|
||||||
if args.yearly:
|
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)
|
keep.sort(key=attrgetter('ts'), reverse=True)
|
||||||
to_delete = [a for a in archives if a not in keep]
|
to_delete = [a for a in archives if a not in keep]
|
||||||
|
|
Loading…
Reference in New Issue