- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: backup
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
09-17-2005 09:53 AM
09-17-2005 09:53 AM
backup
ex: /d1 and /d2 to be restore at same time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2005 10:39 AM
09-17-2005 10:39 AM
Re: backup
sure you can
tar xvf /d1 /d2
but iw ould suggest to NEVER use absolute path in storing files with tar cause hpux tar cannot change directory while restoring. I mean if you do something like:
tar cvf /dev/rmt/0m /users/me/dirtostore
you cannot simply restore in
/users/you/dirtostore
better do something like
cd /users/me; tar c ./dirtostore
last hint
tar store and restore recursively, so tar x /d1
will get everything on tape start with /d1
hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2005 10:40 AM
09-17-2005 10:40 AM
Re: backup
Yes, absolutely. For example:
# cd /var/tmp/newdir
# tar -xvf /dev/rmt0m ./dir1 ./dir2
...would restore the directories "dir1" and "dir2" and their respective contents into /var/tmp/newdir. This assumes that your archive was created using relative paths -- which is usually very desirable when creating 'tar' archives. Use of relative paths gives you the flexability to recover (restore) things in places other than from where they came.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2005 12:31 PM
09-17-2005 12:31 PM
Re: backup
Actually, you *can* restore absolute paths without overwriting the current contents of those directories, but it's a hassle.
chroot will create a new root directory for you to restore these from. However, you'll also need to copy in a bunch of other files to make the new root dir work correctly - /bin, /sbin, and I think /etc (long time since I did this).
I had a machine set up for this .... some years back when I was having to do a lot of recoveries of tar files from customer machines. I ended up creating a chroot dir on one machine where I'd restore stuff each time, exit from the chroot, then copy the files back to where I wanted them. Was very handy with things like (small) databases etc. We were running multiple customer databases for debugging on one machine, yet the standard install that we'd push out put them all in the same place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2005 04:20 AM
09-19-2005 04:20 AM
Re: backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2005 04:42 AM
09-19-2005 04:42 AM