- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cpio error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2001 12:44 AM
09-14-2001 12:44 AM
cpio error
To backup a given directory i use the following
command line:
find /working_dir -print | cpio -oc >/device_tape_name
and the backup terminates whitout errors.
But when trying to list or extract the backuped files with :
cpio -itcv or
cpio -icv
I recieve the following message:
cpio: unexpected end-of-archive encountered.
What could be the error i commited ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2001 01:31 AM
09-14-2001 01:31 AM
Re: cpio error
is a a 'rewind' device ?
Re-wind the tape (mt -f device> rew) and try to read with cpio again
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2001 05:26 AM
09-14-2001 05:26 AM
Re: cpio error
# HP BACKUP.SYS Backs up everything under /
echo "Starting Backup Routine ...............`date`" > /usr/tmp/bulog
TERM=vt220; export TERM
echo "------------------------------------------------" |tee -a /usr/tmp/bulog
echo "Creating Backup List .................`date`" |tee -a /usr/tmp/bulog
cd /
date > ./datestamp
find ./datestamp -print > /usr/tmp/backuplist
find ./ -size +0 -print >> /usr/tmp/backuplist
NUM=`cat /usr/tmp/backuplist|wc -l`
echo "------------------------------------------------" |tee -a /usr/tmp/bulog
echo "Rewinding tape before the write ......`date`" |tee -a /usr/tmp/bulog
mt -t /dev/rmt/0m rew
echo "------------------------------------------------" |tee -a /usr/tmp/bulog
echo "Writing to tape .....................`date`" |tee -a /usr/tmp/bulog
cat /usr/tmp/backuplist | cpio -ocuvB > /dev/rmt/0m
echo "$NUM file(s) should be written to tape..." |tee -a /usr/tmp/bulog
echo "Write Complete! .......................`date`" |tee -a /usr/tmp/bulog
echo "------------------------------------------------" |tee -a /usr/tmp/bulog
echo "Rewinding tape before the verify ......`date`" |tee -a /usr/tmp/bulog
mt -t /dev/rmt/0m rew
echo "------------------------------------------------" |tee -a /usr/tmp/bulog
echo "Verifying Tape Backup .................`date`" |tee -a /usr/tmp/bulog
cpio -ictBv < /dev/rmt/0m > /usr/tmp/tapelist
NUM2=`cat /usr/tmp/tapelist|wc -l`
echo "**************************************" |tee -a /usr/tmp/bulog
echo "$NUM file(s) should write to tape..." |tee -a /usr/tmp/bulog
echo "$NUM2 files verified from tape..." |tee -a /usr/tmp/bulog
echo "**************************************" |tee -a /usr/tmp/bulog
if [ "$NUM" != "$NUM2" ]
then
echo "WARNING!!! Tape Verification has failed " |tee -a /usr/tmp/bulog
echo "Please notify R&D Systems immediately " |tee -a /usr/tmp/bulog
fi
echo "Tape Verification Complete ............`date`" |tee -a /usr/tmp/bulog
echo "------------------------------------------------" |tee -a /usr/tmp/bulog
echo "Taking tape drive offline .............`date`" |tee -a /usr/tmp/bulog
mt -t /dev/rmt/0m offline &
echo "BACKUP COMPLETE! ......................`date`" |tee -a /usr/tmp/bulog
echo "------------------------------------------------" |tee -a /usr/tmp/bulog
echo "Backup log is /usr/tmp/bulog" |tee -a /usr/tmp/bulog
echo "Backup list is /usr/tmp/backuplist" |tee -a /usr/tmp/bulog
echo "Tape Verify list is /usr/tmp/tapelist" |tee -a /usr/tmp/bulog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2001 05:38 AM
09-14-2001 05:38 AM
Re: cpio error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2001 01:04 PM
09-14-2001 01:04 PM
Re: cpio error
are you really certain that you did not use any kind of
buffering on writing or reading, that being the most
common reason for that message in my experience.
do you get the same message, when you you try
dd if=/dev/rmt/cYtYd0 obs=64k | cpio -ictv
HTH,
Wodisch