From 43cb219fb74b92d0e8e22c9fa30286c6e754d8ae Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Fri, 13 Jul 2018 20:04:27 +0200 Subject: [PATCH] dsnap-sync: introduce support for automounter - add parameter to set automounter-path - handle start of systemd-unit on target --- bin/dsnap-sync | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/dsnap-sync b/bin/dsnap-sync index 326229f..c4f50fb 100755 --- a/bin/dsnap-sync +++ b/bin/dsnap-sync @@ -627,6 +627,10 @@ parse_params () { # Call usage() function. usage ;; + -a|--automount) + automount_path="$2" + shift 2 + ;; -b|--backupdir) backupdir_cmdline="$2" shift 2 @@ -729,6 +733,10 @@ parse_params () { printf "%s v%s\n" "$progname" "$version" exit 0 ;; + --automount=*) + automount_path=${1#*=} + shift + ;; --backupdir=*) backupdir_cmdline=${1#*=} shift @@ -1613,6 +1621,7 @@ $progname $version Usage: $progname [options] Options: + -a, --automount start automount for given path to get a valid target mountpoint. -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: "dsnap-sync backup"