Skip to content

Commit

Permalink
transfer: more Highlander options, fixes borgbackup#6269
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Apr 6, 2023
1 parent 79b39c4 commit afccb1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/borg/archiver/transfer_cmd.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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(
Expand All @@ -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)

0 comments on commit afccb1d

Please sign in to comment.