mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 12:45:34 +00:00
import/export-tar: more Highlander options, fixes #6269
This commit is contained in:
parent
d0d8cd1edf
commit
971438dfa0
1 changed files with 12 additions and 2 deletions
|
@ -390,7 +390,11 @@ def build_parser_tar(self, subparsers, common_parser, mid_common_parser):
|
|||
)
|
||||
subparser.set_defaults(func=self.do_export_tar)
|
||||
subparser.add_argument(
|
||||
"--tar-filter", dest="tar_filter", default="auto", help="filter program to pipe data through"
|
||||
"--tar-filter",
|
||||
dest="tar_filter",
|
||||
default="auto",
|
||||
action=Highlander,
|
||||
help="filter program to pipe data through",
|
||||
)
|
||||
subparser.add_argument(
|
||||
"--list", dest="output_list", action="store_true", help="output verbose list of items (files, dirs, ...)"
|
||||
|
@ -401,6 +405,7 @@ def build_parser_tar(self, subparsers, common_parser, mid_common_parser):
|
|||
dest="tar_format",
|
||||
default="GNU",
|
||||
choices=("BORG", "PAX", "GNU"),
|
||||
action=Highlander,
|
||||
help="select tar format: BORG, PAX or GNU",
|
||||
)
|
||||
subparser.add_argument("name", metavar="NAME", type=archivename_validator, help="specify the archive name")
|
||||
|
@ -504,6 +509,7 @@ def build_parser_tar(self, subparsers, common_parser, mid_common_parser):
|
|||
dest="comment",
|
||||
type=comment_validator,
|
||||
default="",
|
||||
action=Highlander,
|
||||
help="add a comment text to the archive",
|
||||
)
|
||||
archive_group.add_argument(
|
||||
|
@ -511,6 +517,7 @@ def build_parser_tar(self, subparsers, common_parser, mid_common_parser):
|
|||
dest="timestamp",
|
||||
type=timestamp,
|
||||
default=None,
|
||||
action=Highlander,
|
||||
metavar="TIMESTAMP",
|
||||
help="manually specify the archive creation date/time (yyyy-mm-ddThh:mm:ss[(+|-)HH:MM] format, "
|
||||
"(+|-)HH:MM is the UTC offset, default: local time zone). Alternatively, give a reference file/directory.",
|
||||
|
@ -521,6 +528,7 @@ def build_parser_tar(self, subparsers, common_parser, mid_common_parser):
|
|||
dest="checkpoint_interval",
|
||||
type=int,
|
||||
default=1800,
|
||||
action=Highlander,
|
||||
metavar="SECONDS",
|
||||
help="write checkpoint every SECONDS seconds (Default: 1800)",
|
||||
)
|
||||
|
@ -530,14 +538,15 @@ def build_parser_tar(self, subparsers, common_parser, mid_common_parser):
|
|||
dest="checkpoint_volume",
|
||||
type=int,
|
||||
default=0,
|
||||
action=Highlander,
|
||||
help="write checkpoint every BYTES bytes (Default: 0, meaning no volume based checkpointing)",
|
||||
)
|
||||
archive_group.add_argument(
|
||||
"--chunker-params",
|
||||
dest="chunker_params",
|
||||
action=Highlander,
|
||||
type=ChunkerParams,
|
||||
default=CHUNKER_PARAMS,
|
||||
action=Highlander,
|
||||
metavar="PARAMS",
|
||||
help="specify the chunker parameters (ALGO, CHUNK_MIN_EXP, CHUNK_MAX_EXP, "
|
||||
"HASH_MASK_BITS, HASH_WINDOW_SIZE). default: %s,%d,%d,%d,%d" % CHUNKER_PARAMS,
|
||||
|
@ -549,6 +558,7 @@ def build_parser_tar(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.',
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue