diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-09-20 00:41:18 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-09-20 00:41:18 +0000 |
commit | 8d01396f60619d873e11d6c59aeeafb974a204e4 (patch) | |
tree | 6d07c149b92b7c90cfa03a6999f1f56f62d4cf96 /backupninja/rub | |
parent | 51c42871d1c5fac7c55112c0a1d65f2d022f1e5e (diff) | |
download | slackbuilds-8d01396f60619d873e11d6c59aeeafb974a204e4.tar.gz slackbuilds-8d01396f60619d873e11d6c59aeeafb974a204e4.tar.bz2 |
backupninja: added pull handler; updated rub handler
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@239 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'backupninja/rub')
-rwxr-xr-x | backupninja/rub | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/backupninja/rub b/backupninja/rub index 4adfe811..cee94821 100755 --- a/backupninja/rub +++ b/backupninja/rub @@ -29,7 +29,7 @@ # setsection general -getconf log +getconf log /var/log/backupninja-rub.log getconf partition getconf fsck getconf read_only @@ -120,18 +120,18 @@ fi for SECTION in $include; do - section="`basename $SECTION`" + section="`basename $SECTION`" - if [ ! -d "$backupdir/$SECTION/$section.0" ]; then - mkdir -p $backupdir/$SECTION/$section.0 - fi + if [ ! -d "$backupdir/$SECTION/$section.0" ]; then + mkdir -p $backupdir/$SECTION/$section.0 + fi - info "Rotating $backupdir/$SECTION/$SECTION..." - echo "Rotating $backupdir/$SECTION/$SECTION..." >> $log - rotate $backupdir/$SECTION/$section $keep - info "Syncing $SECTION on $backupdir/$SECTION/$section.0..." - rsync -av --delete $EXCLUDES /$SECTION/ $backupdir/$SECTION/$section.0/ >> $log - touch $backupdir/$SECTION/$section.0 + info "Rotating $backupdir/$SECTION/$SECTION..." + echo "Rotating $backupdir/$SECTION/$SECTION..." >> $log + rotate $backupdir/$SECTION/$section $keep + info "Syncing $SECTION on $backupdir/$SECTION/$section.0..." + rsync -av --delete $EXCLUDES /$SECTION/ $backupdir/$SECTION/$section.0/ >> $log + touch $backupdir/$SECTION/$section.0 done |