tmcmulli
January 27th, 2009, 11:28 AM
I have several cron jobs running that work well, and I get notified by a .forward to my gmail acct. Does anyone have a script that would only notify me in case of an error?? The cron jobs are simple backup jobs using rsync:
0 1 * * * rsync -avz --exclude="samba/iTunes Music/**" -e ssh /home/samba/samba username@backup.backupserver.com:daily
The 12 or so emails are great, but I really just want to know when something is wrong, like my fail2ban emails...
Any help GREATLY appreciated!
0 1 * * * rsync -avz --exclude="samba/iTunes Music/**" -e ssh /home/samba/samba username@backup.backupserver.com:daily
The 12 or so emails are great, but I really just want to know when something is wrong, like my fail2ban emails...
Any help GREATLY appreciated!