]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
backupninja: rub handler update
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Wed, 20 Sep 2006 15:32:08 +0000 (15:32 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Wed, 20 Sep 2006 15:32:08 +0000 (15:32 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@251 370017ae-e619-0410-ac65-c121f96126d4

backupninja/backupninja.SlackBuild
backupninja/rub

index ac7cdbbf03784dae4bab9b4a7c4a024f147d6496..bfb7f804bd226d5495717ef6ac70f58609564e28 100755 (executable)
@@ -18,7 +18,7 @@ fi
 PACKAGE="backupninja"
 ARCH="noarch"
 VERSION=${VERSION:=0.9.3}
-BUILD=${BUILD:=1rha}
+BUILD=${BUILD:=2rha}
 SRC_DIR=${SRC:=$CWD}
 TMP=${TMP:=/tmp}
 REPOS=${REPOS:=$TMP}
index efdfa17179d99d1900b6954a6d78f65208b762b3..6918ef8d54d081dfdd5eb59128c622c11a4a4e02 100644 (file)
@@ -140,18 +140,20 @@ for SECTION in $include; do
   info "Syncing $SECTION on $backupdir/$SECTION/$section.0..."
 
   if [ "$from" == "local" ]; then
+    debug $rsync $EXCLUDES /$SECTION/ $backupdir/$SECTION/$section.0/ 
     $rsync $EXCLUDES /$SECTION/ $backupdir/$SECTION/$section.0/ >> $log
     if [ "$?" != "0" ]; then
-      error "Rsync error when trying to transfer $SECTION"
+      warning "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
+      debug $rsync $EXCLUDES -e "$ssh" $user@$host:/$SECTION/ $backupdir/$SECTION/$section.0
       $rsync $EXCLUDES -e "$ssh" $user@$host:/$SECTION/ $backupdir/$SECTION/$section.0 >> $log
       if [ "$?" != "0" ]; then
-        error "Rsync error when trying to transfer $SECTION"
+        warning "Rsync error when trying to transfer $SECTION"
       fi
     fi
   else