success or failure email after backup

User discussion and information resource forum for scripting of TeraByte products using script lanugages such as TBScript, VBScript, Batch Files, and more.

success or failure email after backup

Postby badams_ios » Wed Mar 23, 2016 10:45 pm

I now have my system being backed up using IFL and ./makeGRUB automatically.

I have ssmtp setup and can do: sudo ssmtp 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.
Posts: 39
Joined: Wed May 23, 2012 11:53 am
Location: Oakdale, Ca

Re: success or failure email after backup

Postby TeraByte Support » Thu Mar 24, 2016 7:09 pm

return code of zero is no error, non-zero is an error.
TeraByte Support
Posts: 2662
Joined: Thu May 05, 2011 3:37 pm

Return to Scripting