From 655b1596730445c9d43c3e93e8c0e48c47841b2f Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Wed, 17 Jan 2018 18:25:14 +0100 Subject: [PATCH] snap-sync: improved parse_params - backupdir - target - uuid Signed-off-by: Ralf Zerres --- bin/snap-sync | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/snap-sync b/bin/snap-sync index 4b0761b..85abf43 100755 --- a/bin/snap-sync +++ b/bin/snap-sync @@ -264,9 +264,9 @@ parse_params () { usage ;; -b|--backupdir) - backupdir_cmdline="$2" - shift 2 - ;; + backupdir_cmdline="$2" + shift 2 + ;; -c|--config) if [ ${#selected_config} -gt 0 ]; then selected_configs="${selected_configs} ${2}" @@ -400,11 +400,11 @@ parse_params () { subvolid_cmdline=${1#*=} shift ;; - --target=*|TARGET=*) + --target=*|--TARGET=*) target_cmdline=${1#*=} shift ;; - --uuid=*|UUID=*) + --uuid=*|--UUID=*) uuid_cmdline=${1#*=} shift ;; @@ -1026,6 +1026,7 @@ $progname $version Usage: $progname [options] Options: + -b, --backupdir backupdir is a relative path that will be appended to target backup-root -d, --description Change the snapper description. Default: "latest incremental backup" --label-finished snapper description tagging successful jobs. Default: "snap-sync backup" --label-running snapper description tagging active jobs. Default: "snap-sync in progress"