Operating System - HP-UX
1835927 Members
2546 Online
110088 Solutions
New Discussion

recover a specific file with cpio

 
sassou
Frequent Advisor

recover a specific file with cpio

Hello
I make backup with a cpio command on HPUX
Is it possible to recover a specific file?
Just only one file cartridge?
Thank you
KUZO
3 REPLIES 3
Denver Osborn
Honored Contributor

Re: recover a specific file with cpio

cpio -Bi "/path/filename" < /dev/rmt/0m


Hope this helps,
-denver
sassou
Frequent Advisor

Re: recover a specific file with cpio

hello,
Thank you for your help but I forget one detail.
The backup was made by the command
find ${SAVELIST} -print | cpio -ocvB | compress > /dev/rmt/0m
where SAVELIST was a liste of file.
The backup was good and I recover all the cartridge very frequently my problem is to recover only one file.
I need your help
KUZO
Rodney Hills
Honored Contributor

Re: recover a specific file with cpio

If the data is compressed on the tape (I assume your tape drive doesn't have hardware compression, which would be the prefered way), then you could uncompress the data and pipe the output to cpio. Like-

uncompress -c
HTH

-- Rod Hills
There be dragons...