- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- make_tape_recovery
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
Forums
Discussions
Discussions
Discussions
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
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
01-16-2003 12:27 AM
01-16-2003 12:27 AM
I have backup tape made by Make_tape_recovery command.
Is it possible to extract only one directory from this tape and restor it to original location.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 12:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 12:37 AM
01-16-2003 12:37 AM
Re: make_tape_recovery
you have to skip the LIF header with
mt -f /dev/rmt/0mn rew
mt -f /dev/rmt/0mn fsf 1
(use your own correct tape device file if different from /dev/rmt/0mn)
Then you can use tar to extract files/directories from the archive.
Regards,
Birgit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 12:39 AM
01-16-2003 12:39 AM
Re: make_tape_recovery
tar -tvf /dev/rmt/0m > ./list
check list and file you want to restore.
again mt -f /dev/rmt/0mn fsf 1
cd /tmp
tar -xvf /dev/rmt/0mn you_file
move this file to original location after through check.
you may get error as end of tape reached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 01:41 AM
01-17-2003 01:41 AM
Re: make_tape_recovery
the only problem with standard HP-UX tar is that it extracts the directory ONLY e.g. a
tar xvf /dev/rmt/0m /home/myhome/scripts
would re-create an empty scripts dir but not the script files that are in it (and I bet that is what you really want).
So one (inefficient) way is to read the tarfile (tar tvf) and write the filelist to a file on disk which you use as a basis for a script that extracts all files.
The easy solution is to get GNU-tar, which allows you to extract a directory with everything in it from tarfile.
Regards,
Bernhard