rsync-backup: Remote "*deleting <filename>" lines from email reports. Those are too common to be emailed all the time.
This commit is contained in:
parent
63f5a5019d
commit
14986647a4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue