diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-09-20 01:30:09 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-09-20 01:30:09 +0000 |
commit | e58f10b433ef5f3710db48e306b2bd5e96ce98eb (patch) | |
tree | 3f8e8a2c6868132185118f231393b3b8af361ed3 /backupninja | |
parent | 6dc0b2807b4d6673d43c2f8a33dd1ce63883dfff (diff) | |
download | slackbuilds-e58f10b433ef5f3710db48e306b2bd5e96ce98eb.tar.gz slackbuilds-e58f10b433ef5f3710db48e306b2bd5e96ce98eb.tar.bz2 |
backupninja: small fix part 5
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@245 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'backupninja')
-rwxr-xr-x | backupninja/backupninja.SlackBuild | 2 | ||||
-rw-r--r-- | backupninja/rub | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/backupninja/backupninja.SlackBuild b/backupninja/backupninja.SlackBuild index 8ea01d1c..30278a8e 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:=22rha} +BUILD=${BUILD:=23rha} SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} REPOS=${REPOS:=$TMP} diff --git a/backupninja/rub b/backupninja/rub index 548802b9..a9b3f848 100644 --- a/backupninja/rub +++ b/backupninja/rub @@ -22,7 +22,7 @@ # [source] # include = include folder on backup # exclude = exclude folder on backup -# type = local or remote +# from = local or remote # ssh = ssh command line (remote only) # rsync = rsync command line # @@ -43,8 +43,8 @@ getconf days getconf lockfile setsection source -getconf type local -getconf rsync rsync -av --delete +getconf from local +getconf rsync "rsync -av --delete" getconf ssh ssh getconf user getconf host @@ -139,9 +139,9 @@ for SECTION in $include; do rotate $backupdir/$SECTION/$section $keep info "Syncing $SECTION on $backupdir/$SECTION/$section.0..." - if [ "$type" == "local" ]; then + if [ "$from" == "local" ]; then $rsync $EXCLUDES /$SECTION/ $backupdir/$SECTION/$section.0/ >> $log - elif [ "$type" == "remote" ]; then + elif [ "$from" == "remote" ]; then if [ -z "$user" ] || [ -z "$host" ]; then error "Config file error: either user or host was not specified" exit 1 @@ -149,7 +149,7 @@ for SECTION in $include; do $rsync "$ssh" $user@$host:/$SECTION/ $backupdir/$SECTION/$section.0 >> $log fi else - error "Invalid source type $type" + error "Invalid source $from" exit 1 fi |