Report return code of rsync on failure.

This commit is contained in:
Nico Schottelius 2006-06-25 10:44:02 +02:00
parent 165a7a93a5
commit c313ac8f49
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ while [ "$i" -lt "$no_sources" ]; do
"$source" "$abs_destination_dir"
if [ "$?" -ne 0 ]; then
echo "rsync reported an error. The backup may be broken (see rsync errors)"
echo "rsync reported error $?. The backup may be broken (see rsync errors)"
fi
echo "$($DDATE) Finished backup"