From f085f68bfec8f35160947634be139298202ac49e Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Fri, 6 Aug 2021 19:48:05 +0200 Subject: [PATCH] btrbk_restore_raw.py: rename argument --- contrib/tools/btrbk_restore_raw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/tools/btrbk_restore_raw.py b/contrib/tools/btrbk_restore_raw.py index 0476ccb..cd90b99 100755 --- a/contrib/tools/btrbk_restore_raw.py +++ b/contrib/tools/btrbk_restore_raw.py @@ -41,7 +41,7 @@ class TransformDecompress(TransformProcess): class TransformBtrfsReceive(TransformProcess): @staticmethod def run(bfile, options, **kw): - return subprocess.Popen(['btrfs', 'receive', options.btrfs_subvol], **kw) + return subprocess.Popen(['btrfs', 'receive', options.restore_dir], **kw) TRANSFORMERS = ( @@ -175,7 +175,7 @@ def main(): parser = argparse.ArgumentParser(description="restore btrbk raw backup") parser.add_argument('backup', help="backup file to restore; for incremental" " backups the parent files must be in the same directory") - parser.add_argument('btrfs_subvol', help="btrfs subvolume to restore snapshots to using btrfs receive") + parser.add_argument('restore_dir', help="target directory for restored subvolumes (path argument for \"btrfs receive\")") parser.add_argument('--ignore-missing', action='store_true', help="do not fail on missing parent snapshots") for transformer in TRANSFORMERS: