Fork me on GitHub

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
reporting [2013/11/11 20:18]
admin [Log Delivery via Email]
reporting [2013/11/11 20:18]
admin [Log Delivery via Email]
Line 32: Line 32:
 The log file email delivery is handled by the '​lmail'​ tool. The example directory bundled with LBackup contains an example mail configuration file. If you edit the configuration file then you run '​lmail'​ and specify the configuration file as the first argument on the command line the log file will be emailed to the recipient who is specified within the configuration file.  The log file email delivery is handled by the '​lmail'​ tool. The example directory bundled with LBackup contains an example mail configuration file. If you edit the configuration file then you run '​lmail'​ and specify the configuration file as the first argument on the command line the log file will be emailed to the recipient who is specified within the configuration file. 
 \\ \\ \\ \\
-If you have enabled monitoring of [[monitoring_multiple_backup_logs|monitoring of multiple backup logs]] either on a single host or using the monitoring tool to monitor multiple backup hosts then you may wish to use [[http://​caspian.dotconf.net/​menu/​Software/​SendEmail/​|sendEmail]] and [[http://​en.wikipedia.org/​wiki/​Cron|CRON]] in order to schedule regular backup summary reports to be dispatched to you and your team via email. Below is an example one liner listed below (change as required) could be added to [[http://​en.wikipedia.org/​wiki/​Cron|CRON]] so that a report is emailed to the specified email addresses every weekday at 0700 (7AM).+If you have enabled monitoring of [[monitoring_multiple_backup_logs|monitoring of multiple backup logs]] either on a single host or using the monitoring tool to monitor multiple backup hosts then you may wish to use [[http://​caspian.dotconf.net/​menu/​Software/​SendEmail/​|sendEmail]] and [[http://​en.wikipedia.org/​wiki/​Cron|CRON]] in order to schedule regular backup summary reports to be dispatched to you and your team via email. Below is an example one liner listed below (change as required) could be added to [[http://​en.wikipedia.org/​wiki/​Cron|CRON]] so that a report is emailed to the specified email addresses every weekday at 0700 (7AM) : 
  
     0 7 * * 1,​2,​3,​4,​5 /​usr/​local/​sbin/​sendEmail -m "​Backup summary is attached for your reference.\n\n"​ -f backup_servername@example.domain.com -t you@example.domain.com -u "​LBackup Summary : `cat /​path/​to/​your/​backupsummary.log | grep Summary | awk -F "​scanned. " '​{print $2}' | awk -F "​."​ '​{print $1}'​`"​ -a /​path/​to/​your/​backupsummary.log -s smtpserver.example.domain.com:​587 -xu backup_server@example.domain.com -xp your_backup_server_sending_email_password     0 7 * * 1,​2,​3,​4,​5 /​usr/​local/​sbin/​sendEmail -m "​Backup summary is attached for your reference.\n\n"​ -f backup_servername@example.domain.com -t you@example.domain.com -u "​LBackup Summary : `cat /​path/​to/​your/​backupsummary.log | grep Summary | awk -F "​scanned. " '​{print $2}' | awk -F "​."​ '​{print $1}'​`"​ -a /​path/​to/​your/​backupsummary.log -s smtpserver.example.domain.com:​587 -xu backup_server@example.domain.com -xp your_backup_server_sending_email_password