success or failure email after backup
Posted: Thu Mar 24, 2016 5:45 am
I now have my system being backed up using IFL and ./makeGRUB automatically.
I have ssmtp setup and can do: sudo ssmtp gthycs@gmail.com to successfully send myself an email.
What's the code I should add to get the script to send me a success or failure email. The backup IS succeeding, but it takes place at 4 am and I don't want to have to check the computer each time to see if it worked that day.
I have ssmtp setup and can do: sudo ssmtp gthycs@gmail.com to successfully send myself an email.
What's the code I should add to get the script to send me a success or failure email. The backup IS succeeding, but it takes place at 4 am and I don't want to have to check the computer each time to see if it worked that day.