summaryrefslogtreecommitdiff
path: root/backup.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-18 09:28:52 +0200
committerErich Eckner <git@eckner.net>2019-09-18 09:28:52 +0200
commitf6d13e8c292ce48da4de7dd299dc6d03fa9938e1 (patch)
treed4aab1d832f3e053d3c9021d696cdc5a8ba5e0a8 /backup.in
parente9cc48ef07efb8718c9e9aae35519f0c1c51d0fa (diff)
downloadhardlinkedBackups-f6d13e8c292ce48da4de7dd299dc6d03fa9938e1.tar.xz
backup: run preConnectHook before connecting
Diffstat (limited to 'backup.in')
-rwxr-xr-xbackup.in5
1 files changed, 5 insertions, 0 deletions
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=$?