- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restoring files from Ignite Backup using Tar
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
тАО06-08-2009 06:17 AM
тАО06-08-2009 06:17 AM
I recently made a backup of my vg00 using Ignite. My vg00 has filesystems in it which contains some data which I need to restore right now.
Sample of my Ignite backup command:
make_tape_recovery -Ava /dev/rmt/15mn -I
From that command, can I restore some data files using Tar?
TIA!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 06:23 AM
тАО06-08-2009 06:23 AM
SolutionSay you want to restore /etc/hosts from the make_tape_recovery....
1) insert tape in drive
2) rewind the tape -- mt -f /dev/rmt/15mn rew
3) fast forward over the boot header -- mt -f /dev/rmt/15mn fsf 1
4) extract the file(s) required -- tar -xvf /dev/rmt/15mn etc/hosts
NOTE: The files are stored on tape relative to the '/' directory, so they do NOT have a leading '/'.
If you want to get a list of files on tape you can do 'tar -tvf /dev/rmt/15mn' in step 4 above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 06:27 AM
тАО06-08-2009 06:27 AM
Re: Restoring files from Ignite Backup using Tar
tar -xvf /dev/rmt/15m /home/ctmagent/Agent/ctm/data/CONFIG.dat
Whats the difference without putting the "/" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 06:41 AM
тАО06-08-2009 06:41 AM
Re: Restoring files from Ignite Backup using Tar
> Whats the difference without putting the "/" ?
As Patrick said, Ignite uses relative paths not absolute ones when archiving to tape. Hence, if you specify a restoration with a leading '/' to your filename(s) then 'tar' will not find a matching entry.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 06:41 AM
тАО06-08-2009 06:41 AM
Re: Restoring files from Ignite Backup using Tar
Just omit the leading '/'.
# cd /
# tar -xvf /dev/rmt/15m home/ctmagent/Agent/ctm/data/CONFIG.dat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 08:38 AM
тАО06-08-2009 08:38 AM
Re: Restoring files from Ignite Backup using Tar
mt -t /dev/rmt/0m rew (* rewind to start *)
mt -t /dev/rmt/0m rew (* run at least twice since there are two EOF markers on an ignite tape *)
mt -t /dev/rmt/0m fsf (* get past first record of boot lif *)
tar -tvf /dev/rmt/0m (* read table of contents *)
tar -tvf /dev/rmt/0m | more (* easier to read *)
To extract
1-3 above are the same
tar -xvf /dev/rmt/0m /dir/dir/filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 08:52 AM
тАО06-08-2009 08:52 AM
Re: Restoring files from Ignite Backup using Tar
That would be 'tar -tvf'. 'tar -cvf' will STORE files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 04:47 PM
тАО06-08-2009 04:47 PM
Re: Restoring files from Ignite Backup using Tar
pax -r -v -f dev/rmt/15mn etc/hosts
pax(1) also lets you rename filename paths with -s.