Can this be done? My backup works fine with single volumes, but when it runs over, my script emails me the log and it's asking for a new tape. However, it appears to exit right after that.
Here's the script:
and here's the log that is sent to me (i cut out some of the file list to shorten this):
Keith Davis
MCSA, A+, N+, Guru+, Geek+, Child of God++++++
Love and Service
Here's the script:
Code:
#!/bin/sh
echo "$(date) Starting nightly system backup..."
find /rmi/RM5/rm5.dbs -print | backup -i -q -v -f /dev/rmt0 > /backup.log 2>&1
ret=$?
echo "$(date) Backup returned $ret and output is: "
output=`grep ".*" /backup.log`
echo $output
and here's the log that is sent to me (i cut out some of the file list to shorten this):
Code:
Sat Sep 23 01:00:01 CDT 2006 Starting nightly system backup...
Sat Sep 23 04:08:30 CDT 2006 Backup returned 2 and output is:
Backing up to /dev/rmt0. Cluster 51200 bytes (100 blocks). Volume 1 on /dev/rmt0 a 0 /rmi/RM5/rm5.dbs a 71680 /rmi/RM5/rm5.dbs/syscolumns.idx a 126976 /rmi/RM5/rm5.dbs/syscolumns.dat a 32768 /rmi/RM5/rm5.dbs/sysindexes.idx a 19456
.........
/rmi/RM5/rm5.dbs/s_grp00228.idx a 3072 /rmi/RM5/rm5.dbs/s_grp00228.dat a 16967680 /rmi/RM5/rm5.dbs/note500596.idx a 366820352 /rmi/RM5/rm5.dbs/note500596.dat a 133120 /rmi/RM5/rm5.dbs/c5pay00597.id!
x Mount volume 2 on /dev/rmt0. Press Enter to continue.
*****************************************************************
cron: The previous message is the standard output
and standard error of one of the cron commands.
Keith Davis
MCSA, A+, N+, Guru+, Geek+, Child of God++++++
Love and Service