Operating System - HP-UX
1832609 Members
2558 Online
110043 Solutions
New Discussion

ignite cpio system backup .... how to get back a specified file/dir

 
Lutz_4
Advisor

ignite cpio system backup .... how to get back a specified file/dir

hello,

I have a ignite (cpio) backup and want to extract some specific directory.

when a make some cpio -i < /backup_file I got an "Out of phase--get help" , "Perhaps the "c" option shouldn't be used

with cpio -iRc... it is able to read some files but not everything, I still have "out of phase " msgs.


bye

Mathieu
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: ignite cpio system backup .... how to get back a specified file/dir

First off, it's not cpio, but tar - that might be part of your problem. Skip the boot headers with "mt -t /dev/rmt/Xmn fsf 1", then run tar against it.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: ignite cpio system backup .... how to get back a specified file/dir

Sorry, you're right - it could be cpio but you're definitely going to have skip over the boot headers.


Pete

Pete
harry d brown jr
Honored Contributor

Re: ignite cpio system backup .... how to get back a specified file/dir

I think it's a "tar" (aka pax) backup, not cpio.

live free or die
harry d brown jr
Live Free or Die
Lutz_4
Advisor

Re: ignite cpio system backup .... how to get back a specified file/dir

No, it's cpio (I've choosen that in ignite)


bye making my cpio -iRcd
cpio: out of phase; resyncing
100775 bin 27166 Mar 18 01:51:14 2003 opt/test/testfile
cpio: out of ohase; resyncing
cpio: Re-synced after skipping xxxx bytes
100775 bin 27166 Mar 18 01:51:14 2003 tmp/testfilexxxx
cpio: out of phase; resyncing

and so on
I do not get the file I want ....

Pete Randall
Outstanding Contributor

Re: ignite cpio system backup .... how to get back a specified file/dir

Did you do the "mt -t /dev/rmt/Xmn fsf 1" that I suggested?


Pete

Pete
Bill Hassell
Honored Contributor

Re: ignite cpio system backup .... how to get back a specified file/dir

I'm assuming you are skipping the first file on the tape with mt -f /dev/rmt/... fsf since the first file is a binary HP-UX image. Also make sure you are using the Berkeley device file to avoid all that crazy AT&T rewind stuff (see man mt). You might want to use pax (rather than cpio) which understands both tar and cpio backups, and automatically senses the block size.


Bill Hassell, sysadmin
Lutz_4
Advisor

Re: ignite cpio system backup .... how to get back a specified file/dir

Oops I haven't see your remark :/

but BTW my archive file is stored on the station under /ignite/archives/station1/2005-06-18,03:00 (name of the ignite file)

I had a look in the man, mt seems to be for tape ...
with mt -t /ignite/archives/station1/2005-06-18,03:00 I got a "Value too large to be stored in data type"
Lutz_4
Advisor

Re: ignite cpio system backup .... how to get back a specified file/dir

maybe I can provide more clarification, here is my backup command :
/opt/ignite/bin/make_net_recovery -a server:/ignite_bck/archives/server -v -x inc_entire=/dev/vg00 -s server -m cpio