AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  EMAIL Notification for Backups on AIX 5.3

    Posted Wed October 29, 2008 06:37 AM

    Originally posted by: SystemAdmin


    Hi,

    Does anyone know how to setup an email notification for when backups have completed in AIX 5.3?

    Thanks
    #AIX-Forum


  • 2.  Re: EMAIL Notification for Backups on AIX 5.3

    Posted Wed October 29, 2008 11:04 AM

    Originally posted by: apple08


    you can automate the backup using cron job and grep "backup completed successfully" or the tail -f 5 of the backup log and send email to your email. does it make sense?
    #AIX-Forum


  • 3.  Re: EMAIL Notification for Backups on AIX 5.3

    Posted Thu October 30, 2008 12:30 PM

    Originally posted by: SystemAdmin


    No not really im new to UNIX

    Thanks
    #AIX-Forum


  • 4.  Re: EMAIL Notification for Backups on AIX 5.3

    Posted Fri October 31, 2008 09:36 AM

    Originally posted by: MarkTaylor


    Firstly, is sendmail set up correctly on your host ? (or postfix, exim or some other smtp mta application)

    To test this do:

    echo test | mail -s "test" your.email.address@your-host.whatever

    Then, if it is, you can just add a "mail" command similar to above to the end of your backup script.

    something like this if you are using tsm (just an example)

    #!/bin/ksh
    1. .. my backup script ..
    dsmc incr -subdir=y /somedir ## blah blah flags blah blah
    rc=$?
    cat /somedir/backup.log | mail -s "Backup: blah blah rc=$rc" | your.email.address@your-host.whatever

    exit $rc
    1. eof
    HTH
    Mark Taylor
    #AIX-Forum