This commit is contained in:
Vincent Riquer 2012-02-10 09:12:20 +01:00
parent 72245becde
commit 262defc3f5

View File

@ -81,13 +81,13 @@ failRsync() {
nameFailed="$1" nameFailed="$1"
code=$2 code=$2
path="$3" path="$3"
failedBackups+=( "$name" ) failedBackups+=( "$nameFailed" )
if [ -d "$3" ] if [ -d "$3" ]
then then
touch "$3/unfinished.remote-backup" touch "$3/unfinished.remote-backup"
failedWith["$name"]="RSYNC_PARTIAL $code" failedWith["$nameFailed"]="RSYNC_PARTIAL $code"
else else
failedWith["$name"]="RSYNC_FAILED $code" failedWith["$nameFailed"]="RSYNC_FAILED $code"
fi fi
} }
@ -247,7 +247,11 @@ runBackup() {
then then
fail "$NAME" PROTO_MISMATCH fail "$NAME" PROTO_MISMATCH
else else
echo "Rsync protocol mismatch, trying with only one --link-dest" cat <<-EOF
Rsync protocol mismatch, trying with only one --link-dest
EOF
runBackup "$1" PROTOCOLMISMATCH runBackup "$1" PROTOCOLMISMATCH
fi fi
;; ;;