This commit is contained in:
Daniel Langbein 2023-03-19 18:44:16 +01:00
parent ef3fe0fc96
commit 9d6900e0d8
2 changed files with 6 additions and 5 deletions

View File

@ -30,7 +30,7 @@ def parse_args():
parser.add_argument('--chunk-dir',
help='Chunks are saved in this directory. '
'Defaults to directory `<SUBVOLUME>.chunk` next to SUBVOLUME.',
'Defaults to directory `<TARGET_SUBVOLUME>.chunk` next to TARGET_SUBVOLUME.',
dest='chunk_dir',
type=Path,
metavar='CHUNK_DIR',
@ -62,11 +62,11 @@ def parse_args():
)
parser.add_argument('target_path',
help='Path where the subvolume will be created. '
help='Path where CHILD_SUBVOLUME will be replicated. '
'The last component of the path '
'must be equal to the name of CHILD_SUBVOLUME on the sending side.',
type=Path,
metavar='SUBVOLUME'
metavar='TARGET_SUBVOLUME'
)
args = parser.parse_args()

View File

@ -42,7 +42,7 @@ def parse_args():
)
parser.add_argument('--compressed-data',
help='Forwarded to btrfs-send.',
help='Reduce network bandwidth by compressing data.',
dest='compressed_data',
action='store_true',
default=False,
@ -65,7 +65,7 @@ def parse_args():
)
parser.add_argument('child',
help='Path to child subvolume. Forwarded to btrfs-send.',
help='Path to child subvolume.',
type=Path,
metavar='CHILD_SUBVOLUME'
)
@ -81,6 +81,7 @@ def parse_args():
else:
args.chunk_dir = args.chunk_dir.absolute()
# parent
if args.parent is not None:
args.parent = args.parent.absolute()