aboutsummaryrefslogtreecommitdiff
path: root/backupninja
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-09-20 02:31:24 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-09-20 02:31:24 +0000
commit52659a49375fc90b06aff2b7fee26c99407610fa (patch)
tree368a004b1cf8ffe07f5f56d292fcff2963966ac4 /backupninja
parent181b775a892d7ae6f45e85adc4cf3a548cb4d577 (diff)
downloadslackbuilds-52659a49375fc90b06aff2b7fee26c99407610fa.tar.gz
slackbuilds-52659a49375fc90b06aff2b7fee26c99407610fa.tar.bz2
backupninja: no, this is hopefully the last backupninja commit of the day :PP
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@247 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'backupninja')
-rwxr-xr-xbackupninja/backupninja.SlackBuild2
-rw-r--r--backupninja/rub6
2 files changed, 7 insertions, 1 deletions
diff --git a/backupninja/backupninja.SlackBuild b/backupninja/backupninja.SlackBuild
index d495e214..b06b044e 100755
--- a/backupninja/backupninja.SlackBuild
+++ b/backupninja/backupninja.SlackBuild
@@ -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}
diff --git a/backupninja/rub b/backupninja/rub
index 7f215591..09a757f0 100644
--- a/backupninja/rub
+++ b/backupninja/rub
@@ -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"