diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-09-20 15:32:08 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-09-20 15:32:08 +0000 |
commit | 4088f1c0ca035609c37c36083accaaeed03b589b (patch) | |
tree | 5f3bea3254be4215bd59122cbb0a3caeed33e273 /backupninja/rub | |
parent | c2555e48a1b82486be7fe7a080403facf7024fdb (diff) | |
download | slackbuilds-4088f1c0ca035609c37c36083accaaeed03b589b.tar.gz slackbuilds-4088f1c0ca035609c37c36083accaaeed03b589b.tar.bz2 |
backupninja: rub handler update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@251 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'backupninja/rub')
-rw-r--r-- | backupninja/rub | 6 |
1 files changed, 4 insertions, 2 deletions
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 |