Read excludes from /backup directory
authorFSF BOFH <sysadmin-nonrt@fsf.org>
Thu, 18 Aug 2011 22:03:37 +0000 (18:03 -0400)
committerFSF BOFH <sysadmin-nonrt@fsf.org>
Thu, 18 Aug 2011 22:03:37 +0000 (18:03 -0400)
wizbackup-driver

index abda39ef496ef905794755a4dc3064f54ccacc6d..1709284a3e8469869acae708f07709d0e41bba2a 100755 (executable)
@@ -31,8 +31,8 @@ HOSTS=`cat $1 | egrep -v '^#|^ *$'`
 LOGGROUP=`basename $1`
 LOGDIR=/var/log/wizbackup
 LOCKDIR=/var/lock/wizbackup
-EXCLUDES_DIR=/root/rsync-backups/exclude
 DEST=/backup
+EXCLUDES_DIR=$DEST/EXCLUDE
 
 today=`date +"%Y%m%d"`
 mkdir -p $LOGDIR
@@ -55,7 +55,7 @@ for host in $HOSTS; do
        result=$?
        end_time=$(date +%s)
 
-       report="$(date):$host:$(($end_time-$start_time)):$result"
+       report="$(date +%s):$host:$(($end_time-$start_time)):$result"
        echo $report >>$LOGDIR/$LOGGROUP-report-$today.log
        [ $result != 0 ] && echo "$report" >>$LOGDIR/$LOGGROUP-fail-$today.log
 done