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
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