]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
backupninja: no, this is hopefully the last backupninja commit of the day :PP
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Wed, 20 Sep 2006 02:31:24 +0000 (02:31 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Wed, 20 Sep 2006 02:31:24 +0000 (02:31 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@247 370017ae-e619-0410-ac65-c121f96126d4

backupninja/backupninja.SlackBuild
backupninja/rub

index d495e214b79a0a64142875f6cc9da9ce1e17613c..b06b044eb1cf7a7db84b3e5a1c6d8547e3af7db3 100755 (executable)
@@ -18,7 +18,7 @@ fi
 PACKAGE="backupninja"
 ARCH="noarch"
 VERSION=${VERSION:=0.9.3}
-BUILD=${BUILD:=24rha}
+BUILD=${BUILD:=25rha}
 SRC_DIR=${SRC:=$CWD}
 TMP=${TMP:=/tmp}
 REPOS=${REPOS:=$TMP}
index 7f2155912acc6838cb452e38d9f8f1a6e3dcb30a..09a757f03d41a270a026ffbb52a5b313756ad88b 100644 (file)
@@ -141,12 +141,18 @@ for SECTION in $include; do
 
   if [ "$from" == "local" ]; then
     $rsync $EXCLUDES /$SECTION/ $backupdir/$SECTION/$section.0/ >> $log
+    if [ "$?" != "0" ];
+      error "Rsync error when trying to transfer $SECTION"
+    fi
   elif [ "$from" == "remote" ]; then
     if [ -z "$user" ] || [ -z "$host" ]; then
       error "Config file error: either user or host was not specified"
       exit 1
     else
       $rsync $EXCLUDES -e "$ssh" $user@$host:/$SECTION/ $backupdir/$SECTION/$section.0 >> $log
+      if [ "$?" != "0' ];
+        error "Rsync error when trying to transfer $SECTION"
+      fi
     fi
   else
     error "Invalid source $from"