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
Printable View
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
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' <recipient email here>
fi
Hi yasanthau
what u have write the command . its not working ,. if anything else then plz revert
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.