summaryrefslogtreecommitdiff
path: root/backup.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-03-31 07:12:13 +0200
committerErich Eckner <git@eckner.net>2021-03-31 07:12:19 +0200
commitfac41092c0ec71de3978b3db11ad22aeb0f0d2d0 (patch)
treef7b5bf9dd91146596457b692bbc86972d88446ae /backup.in
parent1e37f18e541fa2672c5b021f24be8ac27b8af1fb (diff)
downloadhardlinkedBackups-fac41092c0ec71de3978b3db11ad22aeb0f0d2d0.tar.xz
backup.in: send some data over the ssh for the tunnel to avoid timeouts
Diffstat (limited to 'backup.in')
-rwxr-xr-xbackup.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup.in b/backup.in
index bd3d38b..63ee756 100755
--- a/backup.in
+++ b/backup.in
@@ -149,7 +149,7 @@ elif [ "$#" -eq 4 ]; then
exit 1
fi
rsyncShell="-e ssh -${ipVer} -p${lokPort} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
- tunnelBefehl="ssh -${ipVer} -t -t -L${localAddress}:${lokPort}:${QuellIP}:22 ${sshHopp}"
+ tunnelBefehl="ssh -${ipVer} -t -t -L${localAddress}:${lokPort}:${QuellIP}:22 ${sshHopp} 'while sleep 60; do date; done'"
Quelle="$(echo "$3" | sed "s|${QuellIP}|${localAddress}|")"
else
usage