mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 12:45:34 +00:00
rcompress: more Highlander options, fixes #6269
This commit is contained in:
parent
644796ad6b
commit
6ca2256f26
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
import argparse
|
||||
from collections import defaultdict
|
||||
|
||||
from ._common import with_repository
|
||||
from ._common import with_repository, Highlander
|
||||
from ..constants import * # NOQA
|
||||
from ..compress import CompressionSpec, ObfuscateSize, Auto, COMPRESSOR_TABLE
|
||||
from ..helpers import sig_int, ProgressIndicatorPercent
|
||||
|
@ -230,6 +230,7 @@ def build_parser_rcompress(self, subparsers, common_parser, mid_common_parser):
|
|||
dest="compression",
|
||||
type=CompressionSpec,
|
||||
default=CompressionSpec("lz4"),
|
||||
action=Highlander,
|
||||
help="select compression algorithm, see the output of the " '"borg help compression" command for details.',
|
||||
)
|
||||
|
||||
|
@ -242,5 +243,6 @@ def build_parser_rcompress(self, subparsers, common_parser, mid_common_parser):
|
|||
dest="checkpoint_interval",
|
||||
type=int,
|
||||
default=1800,
|
||||
action=Highlander,
|
||||
help="write checkpoint every SECONDS seconds (Default: 1800)",
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue