diff options
Diffstat (limited to 'backupninja/rub')
-rw-r--r-- | backupninja/rub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backupninja/rub b/backupninja/rub index dc6a3f1c..efdfa171 100644 --- a/backupninja/rub +++ b/backupninja/rub @@ -141,7 +141,7 @@ for SECTION in $include; do if [ "$from" == "local" ]; then $rsync $EXCLUDES /$SECTION/ $backupdir/$SECTION/$section.0/ >> $log - if [ "$?" != "0" ]; + if [ "$?" != "0" ]; then error "Rsync error when trying to transfer $SECTION" fi elif [ "$from" == "remote" ]; then @@ -150,7 +150,7 @@ for SECTION in $include; do exit 1 else $rsync $EXCLUDES -e "$ssh" $user@$host:/$SECTION/ $backupdir/$SECTION/$section.0 >> $log - if [ "$?" != "0" ]; + if [ "$?" != "0" ]; then error "Rsync error when trying to transfer $SECTION" fi fi |