aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbackupninja/backupninja.SlackBuild2
-rw-r--r--backupninja/rub6
2 files changed, 5 insertions, 3 deletions
diff --git a/backupninja/backupninja.SlackBuild b/backupninja/backupninja.SlackBuild
index ac7cdbbf..bfb7f804 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:=1rha}
+BUILD=${BUILD:=2rha}
SRC_DIR=${SRC:=$CWD}
TMP=${TMP:=/tmp}
REPOS=${REPOS:=$TMP}
diff --git a/backupninja/rub b/backupninja/rub
index efdfa171..6918ef8d 100644
--- a/backupninja/rub
+++ b/backupninja/rub
@@ -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