From f6d13e8c292ce48da4de7dd299dc6d03fa9938e1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 18 Sep 2019 09:28:52 +0200 Subject: backup: run preConnectHook before connecting --- backup.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backup.in') diff --git a/backup.in b/backup.in index e499f02..2c73947 100755 --- a/backup.in +++ b/backup.in @@ -192,6 +192,7 @@ fi echo $$ > "${pidFile}" if [ -n "${tunnelBefehl}" ]; then + preConnectHook ${tunnelBefehl} & backgroundPid=$! sleep 4 @@ -207,19 +208,23 @@ fi chmod 750 "${neues}"{,/wip} chown root:root "${neues}"{,/wip} if [ -z "${rsyncShell}" ]; then + preConnectHook rsync ${rsyncOptions} \ ${linkdests} \ ${excludeArgs} \ ${Quelle} "${neues}/wip/" sleep 1 + preConnectHook rsync ${Quelle} else + preConnectHook rsync "${rsyncShell}" \ ${rsyncOptions} \ ${linkdests} \ ${excludeArgs} \ ${Quelle} "${neues}/wip/" sleep 1 + preConnectHook rsync "${rsyncShell}" ${Quelle} fi erg=$? -- cgit v1.2.3-54-g00ecf