On 5/18/07, Ian Dexter R. Marquez <[EMAIL PROTECTED]> wrote:

On 5/18/07, jan gestre <[EMAIL PROTECTED]> wrote:

What does $LOGFILE contain?

Also, take note that in your backup script:

<snip>
$BACKUP db1 -u$DBUSER -p$DBPASS > db1_before.sql
#
$BACKUP db2 -u$DBUSER -p$DBPASS > db2_before.sql
#
if [ "$?" == "0" ]; then
</snip>

the status code that will be returned is that of the second $BACKUP
invocation. So to be safe, also log the exit code for the first one.

Instead of `mailx`, can you try `mail`?


you mean add this part:

if [ "$?" == "0" ]; then
MSG="Successful SYNC"
else
MSG="Failed SYNC"

after every database backup process?

i haven't try mail yet instead of mailx, will do this....
_________________________________________________
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