rsync-backup: Remote "*deleting <filename>" lines from email reports. Those are too common to be emailed all the time.

This commit is contained in:
Ossi Herrala 2014-08-05 13:39:13 +00:00
parent 63f5a5019d
commit 14986647a4

View file

@ -24,7 +24,7 @@ RSYNC_OPTS=( -ax <%= @acl ? "-A" : "" -%> <%= @options ? options : "" -%> --dele
FLOCKEXIT=$? # flock's return code
# Look for unknown lines in log
/bin/egrep -v "^$|([^ ]{11} )|([*]{5} )|(real|user|sys)" $LOGFILE >/dev/null 2>&1
/bin/egrep -v "^$|([^ ]{11} )|([*]{5} )|(\*deleting )|(real|user|sys)" $LOGFILE >/dev/null 2>&1
if [ $? -eq 0 ]; then
/bin/egrep -v "^([^ ]{11} )" $LOGFILE
fi