1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 12:45:34 +00:00

transfer: more Highlander options, fixes #6269

This commit is contained in:
Thomas Waldmann 2023-04-06 17:33:41 +02:00
parent 79b39c4652
commit afccb1dee5
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -1,6 +1,6 @@
import argparse
from ._common import with_repository, with_other_repository
from ._common import with_repository, with_other_repository, Highlander
from ..archive import Archive
from ..constants import * # NOQA
from ..crypto.key import uses_same_id_hash, uses_same_chunker_secret
@ -210,6 +210,7 @@ def build_parser_transfer(self, subparsers, common_parser, mid_common_parser):
dest="other_location",
type=location_validator(other=True),
default=Location(other=True),
action=Highlander,
help="transfer archives from the other repository",
)
subparser.add_argument(
@ -218,6 +219,7 @@ def build_parser_transfer(self, subparsers, common_parser, mid_common_parser):
dest="upgrader",
type=str,
default="NoOp",
action=Highlander,
help="use the upgrader to convert transferred data (default: no conversion)",
)
define_archive_filters_group(subparser)