- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar backup and restore
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-18-2009 05:13 AM
06-18-2009 05:13 AM
i googled for the any such previous thread
but was not able to find.here is a senario :
/dev/vg01/lvol3 10485760 29012 9803266 0% /var/mqsi
/dev/vg01/lvol1 26214400 56299 24523276 0% /var/mqm
/dev/vg01/lvol2 20971520 3193062 16667359 16% /var/mqm/log
i am doing -x inc_entire=vg00 in the ignite .
1)with the ignite tape , can i restore /var/mqm/log
since /var is in vg00 , ie mount mounts have been transversed
while taking the ignite backyp.
2)OR , If i backup the like this :
#tar cvf /dev/rmt/0m $(cat ~myhome/test1)
where test1 is :
#more test1
/var/mqsi
/var/mqm
/var/mqm/log
/usr/local/utilities
/xyz
/xyz1
/Logs
(I.e backing up absolute path)
will i able to do a complete restore of say /xyz,
#pwd
/
#tar xvf /dev/rmt/0mn /xyz
Is the understanding correct.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 05:24 AM
06-18-2009 05:24 AM
Re: tar backup and restore
You can restore your directory from your Ignite tape:
# mt -f /dev/rmt/0mn fsf 1
# tar -xvf /dev/rmt/0m var/mqsi var/mqm
Ignite used relative paths (a wise way to make any 'tar' archive!)
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 05:55 AM
06-18-2009 05:55 AM
Re: tar backup and restore
the best solution is to extract it from ignite tape ( advice from JRF ), and if you are use the tar command you should extract if without /. The slash will be ignored.
when i migrated some data i mounted it with NFS and use find + cpio, to move it to other location.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 06:11 AM
06-18-2009 06:11 AM
Re: tar backup and restore
Thanks for prompt response.Is the second method of taking backup with absolute path correct considering i will need to restore every time exactly at same location.
Regards ,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 06:32 AM
06-18-2009 06:32 AM
Re: tar backup and restore
this means you'll do an ignite tape of your os (vg00) and a tar tape for additionl things (vg01).
So you restore your server by
1. ignite for os
2. add tape for the additional things
This will work
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 06:45 AM
06-18-2009 06:45 AM
Re: tar backup and restore
# mt -f /dev/rmt/0mn fsf 1
# tar -xvf /dev/rmt/0m var/mqsi var/mqm
Right, but the question was (and I have) is did Ignite catch the contents of those since they are in vg01, and only vg00 was included? or what Ignite does when building the list in this case.
I suppose a quick way to tell would be substitute "-tvf" for "-xvf" in the above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 06:46 AM
06-18-2009 06:46 AM
Re: tar backup and restore
Please let me know the correct method of restoration in second case i.e
tar cvf /dev/rmt/0m $(cat ~myhome/test1).
#pwd
/
#tar xvf /dev/rmt/0m var/mqm/log (if need to restore /var/mqm/log)
If need to restore a single file :
#tar xvf /dev/rmt/0m var/mqm/log/logfile1....Is that correct ..thanks a lot for all your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 06:53 AM
06-18-2009 06:53 AM
Re: tar backup and restore
I am done with day and will return after weekend.Thanks once again.
Regards,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 08:30 AM
06-18-2009 08:30 AM
SolutionAn easy way to answer your question is for you to perform a test. That said:
> Please let me know the correct method of restoration in second case i.e
tar cvf /dev/rmt/0m $(cat ~myhome/test1).
> tar xvf /dev/rmt/0m var/mqm/log
This will not work, given that you created you archive with an absolute path. You must specify that for 'tar' to find the directory (or file) in the archive. Thus, do:
# tar -xvf /dev/rmt/0m /var/mqm/log
> If need to restore a single file :
> tar xvf /dev/rmt/0m var/mqm/log/logfile1
The same applies; you need:
# tar -xvf /dev/rmt/0m /var/mqm/log/logfile1
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2009 12:26 AM
06-19-2009 12:26 AM
Re: tar backup and restore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2009 02:26 AM
07-02-2009 02:26 AM
Re: tar backup and restore
/dev/vg01/lvol1 26214400 56299 24523276 0% /var/mqm, for the second case ,
i.s backup with absolute path , James is correct( as always !!)