Operating System - HP-UX
1752799 Members
5877 Online
108789 Solutions
New Discussion юеВ

extracting files from an Ignite NETWORK archive

 
SOLVED
Go to solution
Peter Heinemann
Frequent Advisor

extracting files from an Ignite NETWORK archive

I know how to extract from a tape, but how about from the on-disk network archive? I notice that the network archive files are a gzip compressed...
...thanks.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: extracting files from an Ignite NETWORK archive

If the file is gzip compressed. You should be able to use gunzip to extract files from the archive. You may also need to use pax.

If you look at the log that created the archive you'll see exactly what tools were used to product it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Cheryl Griffin
Honored Contributor
Solution

Re: extracting files from an Ignite NETWORK archive

# cd /var/opt/ignite/recovery/archives/hostname
# ls (ls to get the archive name)
# gzcat ./archive_name | pax -r -f - etc/copyright

Note: there is no leading slash in front of the filename you are attempting to restore.
"Downtime is a Crime."
John P. Kole
Frequent Advisor

Re: extracting files from an Ignite NETWORK archive

Please note that if your archive is larger than 2gb you will not be able to use gunzip or gzcat directly:

$ ls -al OSarch.gz
-rw-rw-rw- 1 root sys 2278914411 Oct 11 16:26 OSarch.gz
$ gunzip -c OSarch.gz | tar -tvf -
OSarch.gz: Unknown error
Tar: blocksize = 0; broken pipe?
$ gzcat OSarch.gz | tar -tvf -
OSarch.gz: Unknown error
Tar: blocksize = 0; broken pipe?


Instead, you should use gunzip or gzcat in a pipe (which should work for all archives):
$ cat OSarch.gz | gzcat | tar -tvf - | head
rwxr-xr-x 0/0 0 Oct 11 15:51 2004 ./
rwxr-xr-x 0/0 0 Oct 5 09:36 2004 lost+found/
r-xr-xr-x 2/2 0 Oct 11 15:51 2004 etc/
r--r--r-- 2/2 184 Mar 26 01:00 2004 etc/group
r--r--r-- 0/1 595 Oct 5 10:23 2004 etc/passwd


More details on this subject can be found at:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=713940
What could possibly go wrong?
Peter Heinemann
Frequent Advisor

Re: extracting files from an Ignite NETWORK archive

True for tar, but note that Cheryl's reply used pax which resolves the problem.

Peter Heinemann
Frequent Advisor

Re: extracting files from an Ignite NETWORK archive

Current replies provide solution.