![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Backup to SCSI Tape Backup aborts | zionpc | SCO | 4 | 12-07-2007 07:47 PM |
| Check backup file size on backup tape | ayhanne | UNIX for Dummies Questions & Answers | 0 | 10-25-2007 12:41 PM |
| code that reads commands from the standard i/p and executes the commands | Phrozen Smoke | High Level Programming | 4 | 01-22-2007 02:06 AM |
| Noob learning Unix: backup commands | lotusx | UNIX for Dummies Questions & Answers | 1 | 06-28-2005 02:50 PM |
| Backup | Mauro | UNIX for Dummies Questions & Answers | 2 | 07-02-2002 08:50 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
When you execute your backup script, test the return code of the command and take an action when necessary.
Example : #!/bin/ksh host=`hostname` ufsdump 0uf /dev/rmt/0 /your_filesystem if [ $? -ne 0 ];then echo "BACKUP ERROR in the $host" echo "BACKUP ERROR in the $host" > /tmp/bkp_msg_error.txt mailx -s "BACKUP ERROR" your_email@your_domain < /tmp/bkp_msg_error.txt fi or #!/bin/csh set host=`hostname` ufsdump 0uf /dev/rmt/0 /your_filesystem if ( $status != 0) then echo "BACKUP ERROR in the $host" echo "BACKUP ERROR in the $host" > /tmp/bkp_msg_error.txt mailx -s "BACKUP ERROR" your_email@your_domain < /tmp/bkp_msg_error.txt endif P.s.: Use the mailx command if you have a sendmail in your host. I hope help you ! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|