Operating System - HP-UX
1748003 Members
4457 Online
108757 Solutions
New Discussion юеВ

Re: Recover cpio tape data

 
Andy Smith_1
Occasional Contributor

Recover cpio tape data

This is on HP-UX v10.20.
We write backup files to DDS tape using cpio -ocvBx.
The tape contents will be many small files, followed by a 10Mb file and then a 600Mb file at the end.
In this case the tape has been re-written with the same cpio command (rewound first), but only putting the many small files onto the start of the tape. The number and sizes of these files is virtually unchanged.
Is there any way I can retrieve the 600Mb file from the end of the first backup?

Thanks very much!
3 REPLIES 3
Donny Jekels
Respected Contributor

Re: Recover cpio tape data

i would dump the entire tape out through dd and then piped to cpio

dd if=/dev/rmt/0m bs=1024 | cpio -itv

this will dump everything from the tape to disk then you can do whatever you need to get your file ;->
"Vision, is the art of seeing the invisible"
Andy Smith_1
Occasional Contributor

Re: Recover cpio tape data

Hi Donny

Thanks for the suggestion. We've given it a try and also this variant:
dd if=/dev/rmt/0mn bs=1024 | cpio -Rcitv

However whilst it reads the data from the second (more recent) backup it stops as soon as it hits the end of volume marker. Have not had any luck yet in persuading it to look beyond this point.

We've tried using mt with -fsr or -fsf (also backward moves) and still no luck.

Any further suggestions will be most welcome.

Andy
Donny Jekels
Respected Contributor

Re: Recover cpio tape data

Andy,

look at this thread it might assist you further.

also try searching the forum. make sure you select ITRC forums.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x8f6190f7c8132f4daad6e97c64ba7cd6,00.html

good luck.
Donny
"Vision, is the art of seeing the invisible"