1
0
Fork 0
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:
Thomas Waldmann 2023-04-06 17:46:17 +02:00
parent 644796ad6b
commit 6ca2256f26
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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)",
)