mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 12:45:34 +00:00
recreate: more Highlander options, fixes #6269
This commit is contained in:
parent
21a3a95cc8
commit
79b39c4652
2 changed files with 9 additions and 1 deletions
|
@ -339,6 +339,7 @@ def define_exclude_and_patterns(add_option, *, tag_files=False, strip_components
|
|||
dest="strip_components",
|
||||
type=int,
|
||||
default=0,
|
||||
action=Highlander,
|
||||
help="Remove the specified number of leading path elements. "
|
||||
"Paths with fewer elements will be silently skipped.",
|
||||
)
|
||||
|
|
|
@ -149,6 +149,7 @@ def build_parser_recreate(self, subparsers, common_parser, mid_common_parser):
|
|||
metavar="TARGET",
|
||||
default=None,
|
||||
type=archivename_validator,
|
||||
action=Highlander,
|
||||
help="create a new archive with the name ARCHIVE, do not replace existing archive "
|
||||
"(only applies for a single archive)",
|
||||
)
|
||||
|
@ -158,6 +159,7 @@ def build_parser_recreate(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)",
|
||||
)
|
||||
|
@ -167,6 +169,7 @@ def build_parser_recreate(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(
|
||||
|
@ -175,6 +178,7 @@ def build_parser_recreate(self, subparsers, common_parser, mid_common_parser):
|
|||
dest="comment",
|
||||
type=comment_validator,
|
||||
default=None,
|
||||
action=Highlander,
|
||||
help="add a comment text to the archive",
|
||||
)
|
||||
archive_group.add_argument(
|
||||
|
@ -183,6 +187,7 @@ def build_parser_recreate(self, subparsers, common_parser, mid_common_parser):
|
|||
dest="timestamp",
|
||||
type=timestamp,
|
||||
default=None,
|
||||
action=Highlander,
|
||||
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.",
|
||||
)
|
||||
|
@ -193,6 +198,7 @@ def build_parser_recreate(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.',
|
||||
)
|
||||
archive_group.add_argument(
|
||||
|
@ -203,6 +209,7 @@ def build_parser_recreate(self, subparsers, common_parser, mid_common_parser):
|
|||
default="never",
|
||||
const="if-different",
|
||||
choices=("never", "if-different", "always"),
|
||||
action=Highlander,
|
||||
help="recompress data chunks according to `MODE` and ``--compression``. "
|
||||
"Possible modes are "
|
||||
"`if-different`: recompress if current compression is with a different "
|
||||
|
@ -217,9 +224,9 @@ def build_parser_recreate(self, subparsers, common_parser, mid_common_parser):
|
|||
"--chunker-params",
|
||||
metavar="PARAMS",
|
||||
dest="chunker_params",
|
||||
action=Highlander,
|
||||
type=ChunkerParams,
|
||||
default=None,
|
||||
action=Highlander,
|
||||
help="rechunk using given chunker parameters (ALGO, CHUNK_MIN_EXP, CHUNK_MAX_EXP, "
|
||||
"HASH_MASK_BITS, HASH_WINDOW_SIZE) or `default` to use the chunker defaults. "
|
||||
"default: do not rechunk",
|
||||
|
|
Loading…
Reference in a new issue