|
@@ -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.",
|
|
|
)
|
|
@@ -372,6 +373,7 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True, ol
|
|
|
dest="sort_by",
|
|
|
type=SortBySpec,
|
|
|
default=sort_by_default,
|
|
|
+ action=Highlander,
|
|
|
help="Comma-separated list of sorting keys; valid keys are: {}; default is: {}".format(
|
|
|
", ".join(AI_HUMAN_SORT_KEYS), sort_by_default
|
|
|
),
|
|
@@ -383,16 +385,18 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True, ol
|
|
|
"--first",
|
|
|
metavar="N",
|
|
|
dest="first",
|
|
|
- default=0,
|
|
|
type=positive_int_validator,
|
|
|
+ default=0,
|
|
|
+ action=Highlander,
|
|
|
help="consider first N archives after other filters were applied",
|
|
|
)
|
|
|
group.add_argument(
|
|
|
"--last",
|
|
|
metavar="N",
|
|
|
dest="last",
|
|
|
- default=0,
|
|
|
type=positive_int_validator,
|
|
|
+ default=0,
|
|
|
+ action=Highlander,
|
|
|
help="consider last N archives after other filters were applied",
|
|
|
)
|
|
|
|
|
@@ -401,15 +405,17 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True, ol
|
|
|
group.add_argument(
|
|
|
"--oldest",
|
|
|
metavar="TIMESPAN",
|
|
|
- type=relative_time_marker_validator,
|
|
|
dest="oldest",
|
|
|
+ type=relative_time_marker_validator,
|
|
|
+ action=Highlander,
|
|
|
help="consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.",
|
|
|
)
|
|
|
group.add_argument(
|
|
|
"--newest",
|
|
|
metavar="TIMESPAN",
|
|
|
- type=relative_time_marker_validator,
|
|
|
dest="newest",
|
|
|
+ type=relative_time_marker_validator,
|
|
|
+ action=Highlander,
|
|
|
help="consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m.",
|
|
|
)
|
|
|
|
|
@@ -418,15 +424,17 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True, ol
|
|
|
group.add_argument(
|
|
|
"--older",
|
|
|
metavar="TIMESPAN",
|
|
|
- type=relative_time_marker_validator,
|
|
|
dest="older",
|
|
|
+ type=relative_time_marker_validator,
|
|
|
+ action=Highlander,
|
|
|
help="consider archives older than (now - TIMESPAN), e.g. 7d oder 12m.",
|
|
|
)
|
|
|
group.add_argument(
|
|
|
"--newer",
|
|
|
metavar="TIMESPAN",
|
|
|
- type=relative_time_marker_validator,
|
|
|
dest="newer",
|
|
|
+ type=relative_time_marker_validator,
|
|
|
+ action=Highlander,
|
|
|
help="consider archives newer than (now - TIMESPAN), e.g. 7d or 12m.",
|
|
|
)
|
|
|
|
|
@@ -500,6 +508,7 @@ def define_common_options(add_common_option):
|
|
|
dest="lock_wait",
|
|
|
type=int,
|
|
|
default=int(os.environ.get("BORG_LOCK_WAIT", 1)),
|
|
|
+ action=Highlander,
|
|
|
help="wait at most SECONDS for acquiring a repository/cache lock (default: %(default)d).",
|
|
|
)
|
|
|
add_common_option(
|
|
@@ -517,12 +526,14 @@ def define_common_options(add_common_option):
|
|
|
dest="umask",
|
|
|
type=lambda s: int(s, 8),
|
|
|
default=UMASK_DEFAULT,
|
|
|
+ action=Highlander,
|
|
|
help="set umask to M (local only, default: %(default)04o)",
|
|
|
)
|
|
|
add_common_option(
|
|
|
"--remote-path",
|
|
|
metavar="PATH",
|
|
|
dest="remote_path",
|
|
|
+ action=Highlander,
|
|
|
help='use PATH as borg executable on the remote (default: "borg")',
|
|
|
)
|
|
|
add_common_option(
|
|
@@ -530,6 +541,7 @@ def define_common_options(add_common_option):
|
|
|
metavar="RATE",
|
|
|
dest="upload_ratelimit",
|
|
|
type=int,
|
|
|
+ action=Highlander,
|
|
|
help="set network upload rate limit in kiByte/s (default: 0=unlimited)",
|
|
|
)
|
|
|
add_common_option(
|
|
@@ -537,6 +549,7 @@ def define_common_options(add_common_option):
|
|
|
metavar="UPLOAD_BUFFER",
|
|
|
dest="upload_buffer",
|
|
|
type=int,
|
|
|
+ action=Highlander,
|
|
|
help="set network upload buffer size in MiB. (default: 0=no buffer)",
|
|
|
)
|
|
|
add_common_option(
|
|
@@ -544,6 +557,7 @@ def define_common_options(add_common_option):
|
|
|
metavar="FILE",
|
|
|
dest="debug_profile",
|
|
|
default=None,
|
|
|
+ action=Highlander,
|
|
|
help="Write execution profile in Borg format into FILE. For local use a Python-"
|
|
|
'compatible file can be generated by suffixing FILE with ".pyprof".',
|
|
|
)
|
|
@@ -551,6 +565,7 @@ def define_common_options(add_common_option):
|
|
|
"--rsh",
|
|
|
metavar="RSH",
|
|
|
dest="rsh",
|
|
|
+ action=Highlander,
|
|
|
help="Use this command to connect to the 'borg serve' process (default: 'ssh')",
|
|
|
)
|
|
|
add_common_option(
|
|
@@ -560,6 +575,7 @@ def define_common_options(add_common_option):
|
|
|
dest="location",
|
|
|
type=location_validator(other=False),
|
|
|
default=Location(other=False),
|
|
|
+ action=Highlander,
|
|
|
help="repository to use",
|
|
|
)
|
|
|
|