Report return code of rsync on failure.
This commit is contained in:
parent
165a7a93a5
commit
c313ac8f49
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ while [ "$i" -lt "$no_sources" ]; do
|
||||||
"$source" "$abs_destination_dir"
|
"$source" "$abs_destination_dir"
|
||||||
|
|
||||||
if [ "$?" -ne 0 ]; then
|
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
|
fi
|
||||||
|
|
||||||
echo "$($DDATE) Finished backup"
|
echo "$($DDATE) Finished backup"
|
||||||
|
|
Loading…
Reference in a new issue