- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- restore single file from make_net_recovery
Operating System - HP-UX
1753964
Members
7505
Online
108811
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО01-20-2005 04:56 AM
тАО01-20-2005 04:56 AM
Is there a way I can restore a single file from the make_net_recovery file?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2005 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2005 06:35 AM
тАО01-21-2005 06:35 AM
Re: restore single file from make_net_recovery
> Date: Jan 20, 2005 17:56:39 GMT
> From: Steve Coates
> Subj: restore single file from make_net_recovery
>
> Is there a way I can restore a single file
> from the make_net_recovery file?
You can use a command like:
# gzcat archive_name | tar -xvf - dir/file_to_restore
As long as the archive is not larger than 2,147,483,647 bytes.
But once your archives have crossed this 2-gigabyte boundary,
the gzcat utility will not work. See these ITRC articles for more details:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=713940
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=753165
For archive larger than 2-gigabytes, one must use something like:
# cat archive_name | gunzip | tar -xvf - dir/file_to_restore
On a side note, sometimes I want to extract a file from an archive,
and at the same time, have the extracted file renamed (like to be
sure I am not overwriting a real system file). I accomplish this
using pax's rename feature as follows:
$ oldname=etc/hosts
$ newname=/tmp/foobar
$ archive=OSarch.gz
$ cat ${archive} | gunzip | pax -s,${oldname},${newname}, -rvf - ${oldname}
USTAR format archive
/tmp/foobar
At this point, the file "/tmp/foobar" is my "etc/hosts" file from
the archive:
$ head -4 /tmp/foobar
# @(#)B11.23_LRhosts $Revision: 1.9.214.1 $ $Date: 96/10/08 13:20:01 $
#
# The form for each entry is:
#
Regards,
jpkole
> From: Steve Coates
> Subj: restore single file from make_net_recovery
>
> Is there a way I can restore a single file
> from the make_net_recovery file?
You can use a command like:
# gzcat archive_name | tar -xvf - dir/file_to_restore
As long as the archive is not larger than 2,147,483,647 bytes.
But once your archives have crossed this 2-gigabyte boundary,
the gzcat utility will not work. See these ITRC articles for more details:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=713940
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=753165
For archive larger than 2-gigabytes, one must use something like:
# cat archive_name | gunzip | tar -xvf - dir/file_to_restore
On a side note, sometimes I want to extract a file from an archive,
and at the same time, have the extracted file renamed (like to be
sure I am not overwriting a real system file). I accomplish this
using pax's rename feature as follows:
$ oldname=etc/hosts
$ newname=/tmp/foobar
$ archive=OSarch.gz
$ cat ${archive} | gunzip | pax -s,${oldname},${newname}, -rvf - ${oldname}
USTAR format archive
/tmp/foobar
At this point, the file "/tmp/foobar" is my "etc/hosts" file from
the archive:
$ head -4 /tmp/foobar
# @(#)B11.23_LRhosts $Revision: 1.9.214.1 $ $Date: 96/10/08 13:20:01 $
#
# The form for each entry is:
#
Regards,
jpkole
What could possibly go wrong?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP