diff options
author | Erich Eckner <git@eckner.net> | 2017-08-15 10:19:21 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-15 10:19:21 +0200 |
commit | 7c98067307218e3213cf8007afce0461d02b45f2 (patch) | |
tree | 1f19849267554ceef20f49b836cfa726e3fcc506 /backup.in | |
parent | 5fa0794aa958d04a9a355f8fadbef070d619083a (diff) | |
download | hardlinkedBackups-7c98067307218e3213cf8007afce0461d02b45f2.tar.xz |
backup.in: change to ipv6
Diffstat (limited to 'backup.in')
-rwxr-xr-x | backup.in | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |