cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in restoring from tape.

skiran
Advisor

Problem in restoring from tape.


Hello All,
I having a problem in restoring backup data . I am using suse linux 7.0.


The backup command used was "find /data -xdev -print | cpio -oBa -H crc" | dd of=/dev/nrmt0h bs=5120"

I tried the following command to list the files . "dd if=/dev/nrmt0h bs=5120 | cpio -icdmv " But it was throwing following error.
"cpio: Unrecognizable archive"


Can anybody tell me the command or steps to restore this.?

Thanks alot..
Shashi
2 REPLIES
Ivan Ferreira
Honored Contributor

Re: Problem in restoring from tape.

I think that the "t" option is needed to list the contents of the cpio backup. Also, have you runned that command right after the backup? Because if so, you must rewind the tape before listing the contents:

mt -f /dev/nrmt0h rewind
dd if=/dev/nrmt0h bs=5120 | cpio -itcdmv
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Stuart Browne
Honored Contributor

Re: Problem in restoring from tape.

You put data on the tape in '-H crc' mode. You need to read it off in '-H crc' mode too.

dd if=/dev/nrmt0h bs=5120 | cpio -ivdm -H crc

see what that does for you.

But Ivan is right.. TO list the tape, you want just:

dd if=/dev/nrmt0h bs=5120 | cpio -vit -H crc
One long-haired git at your service...