Backup Alert

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
azad_ranjeet
Posts: 18
Joined: Sat Sep 13, 2014 2:39 am

Backup Alert

Postby azad_ranjeet » Wed Oct 31, 2012 1:16 am

Hi,

i am using backup shell and using through crontab . But i want to configure alert message or alert mail after completing the backup . so plz tell me how can i do.


Regds

Ranjeet


yasanthau
Advanced member
Advanced member
Posts: 57
Joined: Sat Sep 13, 2014 12:52 am

Backup Alert

Postby yasanthau » Wed Oct 31, 2012 3:28 am

After the final rsync command, add the following lines and change recipient email address.
exitst=`echo $?`

if [ $exitst -ne 0 ]; then

echo "Some error occured during backup process. Please check" | mail -s 'Mail Server Backup Error'

fi
azad_ranjeet
Posts: 18
Joined: Sat Sep 13, 2014 2:39 am

Backup Alert

Postby azad_ranjeet » Tue Feb 26, 2013 11:18 pm

Hi yasanthau

what u have write the command . its not working ,. if anything else then plz revert
yasanthau
Advanced member
Advanced member
Posts: 57
Joined: Sat Sep 13, 2014 12:52 am

Backup Alert

Postby yasanthau » Thu Mar 28, 2013 1:56 am

It is not a single command. It is the piece of shell script that will shoot an email if the backup process fails. You have to add that part just below the rsync command of your backup script.

Return to “Administrators”

Who is online

Users browsing this forum: Google [Bot] and 8 guests