- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- restore a file/directory from 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
06-11-2003 03:28 AM
06-11-2003 03:28 AM
How to restore a file/directory from a make_tape_recovery? Do I need to use the tar or pax command.
Can you give some sample.
Many tnxs in advance :)
Joseph
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2003 03:34 AM
06-11-2003 03:34 AM
Re: restore a file/directory from make_tape_recovery
You can do it using tar :
- rewind tape if needed :
mt -f /dev/rmt/0mn rew
- skip boot on tape by :
mt -f /dev/rmt/0mn fsf 1
- restore file using tar :
tar xvf /dev/rmt/0m pattern
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2003 03:50 AM
06-11-2003 03:50 AM
Re: restore a file/directory from make_tape_recovery
Put the make recovery tape in drive and run the following commands seq. U need to restore from the tar command
mt -t
ex. mt -t /dev/rmt/0mn rew
mt -t
Go to /tmp or any other directory and extract using tar
tar xvf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2003 03:50 AM
06-11-2003 03:50 AM
Re: restore a file/directory from make_tape_recovery
I already done step 1 and 2
on step 3 I try this command
#tar xvf /dev/rmt/0m /home/user1/*
nothing happen, is this correct? I am trying to extract the entire directory/content of user1
Regards
Joseph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2003 03:58 AM
06-11-2003 03:58 AM
Re: restore a file/directory from make_tape_recovery
# mt -t /dev/rmt/0mn rew
# mt -t /dev/rmt/0mn fsf 1
# cd /tmp
# tar xvf /dev/rmt/0mn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2003 03:58 AM
06-11-2003 03:58 AM
Re: restore a file/directory from make_tape_recovery
# mt -t /dev/rmt/0mn rew
# mt -t /dev/rmt/0mn fsf 1
# cd /tmp
# tar xvf /dev/rmt/0mn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2003 03:58 AM
06-11-2003 03:58 AM
Re: restore a file/directory from make_tape_recovery
# mt -t /dev/rmt/0mn rew
# mt -t /dev/rmt/0mn fsf 1
# cd /tmp
# tar xvf /dev/rmt/0mn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2003 04:02 AM
06-11-2003 04:02 AM
SolutionYour problem is related to the pattern. With tar, you have to match the string exactly as it was backed up. To be really sure, use step 1 and to, then use tar tvf /dev/rmt/0m to check, but I think that path is relative to / (I mean etc/group for example, but it could also perhaphs be ./etc/group)
So in your case it should rather be something like :
#tar xvf /dev/rmt/0m home/user1
to restore full directory.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2003 04:06 AM
06-11-2003 04:06 AM
Re: restore a file/directory from make_tape_recovery
#tar xvf /dev/rmt/0m home/user1/*
You can verify and absolute or relative backup, (* use of the root / *), by first listing the table of contents with 'tvf' :
#tar tvf /dev/rmt/0mn
-even redirect the output into a file-
#tar tvf /dev/rmt/0mn > /tmp/tar_file
vi /tmp/tar_file
Also, use the /dev/rmt/0mn 'no rewind' device instead of 'rewind' /dev/rmt/0m' after :
mt -t /dev/rmt/0mn rew
If you don't use 'no rewind' when you position the tape with 'mt' then you'll always start at the beginning of the tape, which is the binary bootlif record. The 'tar' ascii record is the second tape record, that's why you move the tape forward with 'mt'.