Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CPIO Restore not working

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I've never had this problem before, I can read the tape with cpio -ictv </dev/rct0 without a problem.

The backup was written with the following command (don't ask why they do it like this, i don't know):

find / -print | cpio -ocvdBum -O/dev/rct0

I am trying to restore two files from the tape with the following command:

cpio -icdvum -I /dev/rct0 &quot;u/sman/r/CD428.r&quot; &quot;/u/sman/p/CD428.P&quot;

and also the following:

cpio -ivcdum </dev/rct0 &quot;/u/sman/r/CD428.r&quot; &quot;/u/sman/p/CD428.P&quot;

Neither of these restore the files, it doesn't error out, it doesn't time out, but i let it run for 15 hours and still nothing.

Please help, is it the -O on the command that wrote it that is throwing me off?
 
Could be a blocksize problem? Try adding the B option to your cpio -i command. HTH.
 
type

file archive.cpi

it shows blocksizes sometimes

or use pax to unpack
 
Use the command you were using to read the tape and read it in from a new directory using the relative pathname flag. This will restore the whole tape to the new directory and you will have to manually retrieve the two files you were wanting. I've had similar situations where this has worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top