summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-15 10:19:21 +0200
committerErich Eckner <git@eckner.net>2017-08-15 10:19:21 +0200
commit7c98067307218e3213cf8007afce0461d02b45f2 (patch)
tree1f19849267554ceef20f49b836cfa726e3fcc506
parent5fa0794aa958d04a9a355f8fadbef070d619083a (diff)
downloadhardlinkedBackups-7c98067307218e3213cf8007afce0461d02b45f2.tar.xz
backup.in: change to ipv6
-rwxr-xr-xbackup.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/backup.in b/backup.in
index 87f509e..e468c0d 100755
--- a/backup.in
+++ b/backup.in
@@ -1,6 +1,6 @@
#!/bin/bash
-rsyncOptions='-vxcaHAXF'
+rsyncOptions='-6vxcaHAXF'
rsync --help | \
grep -q -- --may-modify-others && \
rsyncOptions="${rsyncOptions} --may-modify-others"
@@ -56,10 +56,10 @@ elif [ "$#" -eq 4 ]
then
sshHopp="$4"
lokPort=$[$RANDOM/2+8000]
- rsyncShell="-e ssh -p${lokPort} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
- tunnelBefehl="ssh -t -t -L${lokPort}:${QuellIP}:22 ${sshHopp}"
+ rsyncShell="-e ssh -6 -p${lokPort} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
+ tunnelBefehl="ssh -6 -t -t -L${lokPort}:${QuellIP}:22 ${sshHopp}"
HoppIP="${sshHopp#*@}"
- Quelle="$(echo "$3" | sed "s|${QuellIP}|127.0.0.1|")"
+ Quelle="$(echo "$3" | sed "s|${QuellIP}|::1|")"
else
usage
fi