LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-07-2005, 06:06 AM   #1
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bus Error (core dumped) due to SIGBUS signal rajendra.badapanda Programming 10 07-19-2005 10:18 AM
Bus Error (core dumped) due to SIGBUS signal rajendra.badapanda Linux - Software 1 07-05-2005 12:10 PM
Segmentation Fault (core dumped) newuser455 Linux - Software 3 08-28-2004 02:39 PM
urpmi - core dumped ashamril Mandriva 0 02-26-2004 08:41 PM
Core Dumped Nezar Linux - General 4 07-18-2001 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration