cpio Signal 31 - core dumped
Hi All,
I'm actually using cpio on a SCO unix server 5.0.7
I want to do a FULL nightly backup of the system to tape and then append to the tape every night with another full backup for that week. I have a HP DLT VS160 drive so tape space isnt an issue.
Anyway i have put this script together below but it keeps stopping with a core dump. the actual drive doesnt even get going. when i look at the log file its creating its getting some way through the list of files then stops. i believe error signal 31 indicates that it has exceeded the maxium file size?
Any ideas how i can get CPIO to work. I believe there is an error within the version of TAR on the system which wont backup to tape properly.
i have played around with flags on the cpio command, no luck.
here is my script.
#!/bin/sh
PATH=/bin:/usr/bin:/etc:/local/bin
export PATH
#Variables
DAY=`date '+%a' | tr '[A-Z]' '[a-z]'`
BACKUPLOG=/var/log/backuplog.${DAY}
BACKUP_DEVICE=/dev/nRct0
MACHINE=`uname -n`
# Write message to console...
echo "\n\R`date`: $1" > /dev/console
# Write message to the backup log...
echo "`date`: $1" >> $BACKUPLOG
# Actual backup program...
echo "`date`: ** System Backup started on \"${BACKUP_DEVICE}\" **" > $BACKUPLOG
echo "\n\R`date`: ** System Backup started on \"${BACKUP_DEVICE}\" **"
#> /dev/console
cd /
find / | cpio -ov $BACKUP_DEVICE >> \
$BACKUPLOG 2>&1
if test $? = 0
then
echo "** System Backup on \"$MACHINE\" to ${BACKUP_DEVICE} \
completed OK **" >> $BACKUPLOG
exit "OK"
else
echo "** System Backup on \"$MACHINE\" to ${BACKUP_DEVICE} \
has F A I L E D **" >> $BACKUPLOG
exit "FAILED!"
fi
|