View Single Post
  #47  
Old 30th May 2010, 22:19
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Thanks: 5
Thanked 39 Times in 6 Posts
Exclamation

Quote:
Originally Posted by Torch_za View Post
Mail on all servers runs just fine... it has to... they are production servers.

If I run the (modified - variables are substituted) line from a shell, it runs and the mail is sent. It's the back-res script that does not seem to fire the line...

The safe tail of the trace (set -x)


+ echo '2010-05-30 19:12:48 - back-res - Daily backup for /var done.'
+ rm -rf /backup/tmpbck/full-backup_var.lck
+ rm -rf /backup/tmpbck/excluded
+ log 'All backup jobs done. Exiting script!'
++ date '+%Y-%m-%d %H:%M:%S'
+ acum='2010-05-30 19:12:48'
+ '[' -e /backup/server.domain.tld/log/backup.log ']'
++ basename ./back-res
+ echo '2010-05-30 19:12:48 - back-res - All backup jobs done. Exiting script!'
++ basename ./back-res
+ echo '2010-05-30 19:12:48 - back-res - All backup jobs done. Exiting script!'
+ exit 1


As you can see the line is never reached or executed...

You are right, the line which sends mail is in the restore part of the script... So mail is send only at restore. My mistake. The backup part does not send mail. I'll correct this as soon as possible. Thanks for pointing this up.
Reply With Quote