- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restoring files using pax_enh
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-24-2010 10:10 AM
тАО06-24-2010 10:10 AM
Restoring files using pax_enh
We have a RP8400 running hpux 11.23. We just recently moved from ftio as our back up solution to pax_enh due to the ftio 2GB file size limit. While performing a back up, we specify the full path, for example "/production/client/db", and with ftio, we were able to drop the first "/" and restore files where we were sitting without restoring to the original location. Unfortunately with pax_enh, we cannot figure out how to do this.
Does anyone know how to restore files to a current working directory and not the original?
Thanks
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2010 10:28 AM
тАО06-24-2010 10:28 AM
Re: Restoring files using pax_enh
You simply use the '-s' option of 'pax' to strip the leading '/' and or path(es). See the manpages for 'pax'/
For example:
# pax -w -f /tmp/mypax /tmp/myfile
# cd /var/tmp && pax -r -s ',/tmp/,,' -f /tmp/mypax
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2010 11:21 AM
тАО06-24-2010 11:21 AM
Re: Restoring files using pax_enh
I ran the following command but it still restores to the original file location:
pax_enh -rv -b 32768 -s ',/BCVu4//,,' -f /dev/rmt/18m
I want to be able to restore everything under BCVu4 into the directory I am currently sitting in. Is there something wrong with the command I ran?
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2010 11:22 AM
тАО06-24-2010 11:22 AM
Re: Restoring files using pax_enh
pax_enh -rv -b 32768 -s ',/BCVu4/,,' -f /dev/rmt/18m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2010 12:44 PM
тАО06-26-2010 12:44 PM
Re: Restoring files using pax_enh
I made a typo like that for pax(1) recently. Using -k will keep you from messing up, until you get your -s patterns straight.