Operating System - HP-UX
1753785 Members
7281 Online
108799 Solutions
New Discussion юеВ

Re: Restore a single file from ignite-ux

 
SOLVED
Go to solution
Matteo Pignoni
Advisor

Restore a single file from ignite-ux

Hi,
is it possible to restore a single file from an ignite-ux make_net_recovery without restore all the host?

Thank you
Matteo
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: Restore a single file from ignite-ux

Yes. As follows.

mt -f /dev/rmt/?mn rew

mt -f /dev/rmt/?mn fsf 1

tar -xvf /dev/rmt/?mn dir/filename
There is no substitute to HARDWORK
Pete Randall
Outstanding Contributor

Re: Restore a single file from ignite-ux

Anil,

That would work if it was a tape, but Matteo asked about a make_NET_recovery! I'm not sure of the procedure in this case.


Pete

Pete
Matteo Pignoni
Advisor

Re: Restore a single file from ignite-ux

I've found a tape with a make recovery and i've restored the file.

Thank you!

Matteo
John P. Kole
Frequent Advisor

Re: Restore a single file from ignite-ux

It is possible to restore a single file from an archive. Details:

Assume I have an archive:
$ archive=/var/opt/ignite/archives/iux11i32bit.gz

And I want to extract this file from it:
$ NameNarc=opt/hpws/util/ports.sh

I check to be sure the file is in the archive:
$ gzcat iux11i32bit.gz | tar -tvf - | grep ${NameNarc}
r-xr-xr-x 2/2 8094 Oct 9 16:56 2004 opt/hpws/util/ports.sh

I want to extract the file into a temporary location and with a different name:
$ NameNtmp=/tmp/dog.sh

So I use the following command:
$ gzcat ${archive} | pax -s,${NameNarc},${NameNtmp}, -rvf - ${NameNarc}
USTAR format archive
/tmp/dog.sh

And now, I have my original file from the archive in a new location, with a new name:
$ ls -aol ${NameNtmp}
-r-xr-xr-x 1 jpkole 8094 Oct 9 2004 /tmp/dog.sh


What could possibly go wrong?
Matteo Pignoni
Advisor

Re: Restore a single file from ignite-ux

Thank you John!

Bye Matteo