2010-07-12 13:11:00 PDT
Hi all!
I had some trouble with mailing files after backup. When i ran the script, i got errors like:
Can't stat
myaddress@mail.com: No such file or directory
myaddress@mail.com: unable to attach file.
Since i already had mutt installed, googled for the problem, but didnt find any like this. Then i looked through the script and changed this:
from:
mutt -s "${ERRORNOTE} MySQL Backup Log and SQL Files for ${HOST} - ${DATE}" ${BACKUPFILES} ${MAILADDR} < ${LOGFILE} #send via mutt
to:
mutt -s "${ERRORNOTE} MySQL Backup Log and SQL Files for ${HOST} - ${DATE}" ${MAILADDR} ${BACKUPFILES} < ${LOGFILE} #send via mutt
so all i did was switched ${BACKUPFILES} with ${MAILADDR} .
It is working all right now.
I was on Ubuntu server 9.10.
I hope it may help somebody! ;)
Nice script, thanks for your time, have a nice day!
bulazs