From: FSF BOFH Date: Thu, 18 Aug 2011 22:03:37 +0000 (-0400) Subject: Read excludes from /backup directory X-Git-Url: https://codewiz.org/gitweb?p=wizbackup.git;a=commitdiff_plain;h=46d6df097eeebe611e3ca3bd07506df1c0bbc1ff;hp=36920c02b847daf4fce6fec0ea5682abb1fbde27 Read excludes from /backup directory --- diff --git a/wizbackup-driver b/wizbackup-driver index abda39e..1709284 100755 --- a/wizbackup-driver +++ b/wizbackup-driver @@ -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