- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to copy 1 file from the backup done via make_n...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 05:07 AM
тАО04-30-2009 05:07 AM
how do i copy only 1 file from the backup which done via make_net_recovery ?
the ignite backup is located in the other server...
pls guide..many thanks!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 05:13 AM
тАО04-30-2009 05:13 AM
SolutionWhen you find the file do:
To get a list of files:
# gzcat
Say you want to restore the /etc/hosts file:
# gzcat
Make careful note of the spacing required above. In the first command there is a space between the 'tvf' and the last '-'.
In the 2nd command there is a space between 'xvf' and the '-' and between the '-' and the file name.
Also note the there is NOT a leading '/' in the file name you want to restore.
When the file is restored it will recreate the directory structure for the file **in the directory you issue the command from**. This is because of the lack of the leading '/' in the file name (the relative path) and all files were stored relative to the '/' directory.
Once you have restored the file you will have to copy it to the server you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 05:14 AM
тАО04-30-2009 05:14 AM
Re: how to copy 1 file from the backup done via make_net_recovery ?
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
http://www.hpuxtips.es/?q=node/35
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 05:38 AM
тАО04-30-2009 05:38 AM
Re: how to copy 1 file from the backup done via make_net_recovery ?
but our image file something like this
-rw----- 1 nobody sys 7634932883 Mar 26 14:05 2009-03-26, 12:26
its no zip or tar..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 06:13 AM
тАО04-30-2009 06:13 AM
Re: how to copy 1 file from the backup done via make_net_recovery ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 06:20 AM
тАО04-30-2009 06:20 AM
Re: how to copy 1 file from the backup done via make_net_recovery ?
Yes it is. It may not have '.gz' extension but it is still a gzip'ed tar file. That is how Ignite creates those images.