summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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