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"
code=$2
path="$3"
failedBackups+=( "$name" )
failedBackups+=( "$nameFailed" )
if [ -d "$3" ]
then
touch "$3/unfinished.remote-backup"
failedWith["$name"]="RSYNC_PARTIAL $code"
failedWith["$nameFailed"]="RSYNC_PARTIAL $code"
else
failedWith["$name"]="RSYNC_FAILED $code"
failedWith["$nameFailed"]="RSYNC_FAILED $code"
fi
}
@ -247,7 +247,11 @@ runBackup() {
then
fail "$NAME" PROTO_MISMATCH
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
fi
;;