Hi guys,

I made a simple script to backup our mysql databases and i have them run as
cronjobs however we want to know the results if it gets backed up
successfully or not.

here is the script:

#!/bin/sh
# Backup the database
#
# change directory to the external drive
cd /media/FreeAgent_Drive/DBbackup/
mysqldump -v database -uuser -ppassword > database.sql

I tried running the script manually and email after it completes the job.

# sh scriptname | mailx [EMAIL PROTECTED]

however the email i got was empty, even if i made it verbose, the email is
still empty.

what changes needs to be done in order for this script to tell me if the
backup is successful or not and email the results?

tia
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to