mirror of https://github.com/borgbackup/borg.git
Compare commits
3 Commits
023f94002d
...
0d8acaf989
Author | SHA1 | Date |
---|---|---|
Michael Deyaso | 0d8acaf989 | |
TW | 0301451bd4 | |
Michael Deyaso | e69fbe93c1 |
|
@ -80,7 +80,7 @@ class PruneMixIn:
|
|||
raise CommandError(
|
||||
'At least one of the "keep-within", "keep-last", '
|
||||
'"keep-secondly", "keep-minutely", "keep-hourly", "keep-daily", '
|
||||
'"keep-weekly", "keep-monthly" or "keep-yearly" settings must be specified.'
|
||||
'"keep-weekly", "keep-monthly", "keep-yearly" or "keep-all" settings must be specified.'
|
||||
)
|
||||
|
||||
if args.format is not None:
|
||||
|
@ -299,6 +299,13 @@ class PruneMixIn:
|
|||
action=Highlander,
|
||||
help="number of secondly archives to keep",
|
||||
)
|
||||
subparser.add_argument(
|
||||
"--keep-all",
|
||||
dest="secondly",
|
||||
action="store_const",
|
||||
const=float("inf"),
|
||||
help="keep all archives (alias of --keep-last=<infinite>)",
|
||||
)
|
||||
subparser.add_argument(
|
||||
"--keep-minutely",
|
||||
dest="minutely",
|
||||
|
|
Loading…
Reference in New Issue