- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using Pax command
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
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
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
04-10-2013 10:20 AM - last edited on 04-10-2013 08:05 PM by Maiko-I
04-10-2013 10:20 AM - last edited on 04-10-2013 08:05 PM by Maiko-I
I want to learn how to extract just a single file from my tapes using the pax command. As of right now I have been using these command to write, list, and recover my data but am not sure how to just recover one file or directory from the back up tape. Does any one have any solution.
- Back up your files system
pax -vwf /dev/rmt/0m /home
- List the items on the disk
pax -f /dev/rmt/0m -v
- Extract your files from the disk
pax -r -pe -f /dev/rmt/0m
P.S. This thread has been moved from Your Questions Regarding ITRC Forums (Legacy ITRC forum) to HP-UX > sysadmin - HP Forums Moderator
Solved! Go to Solution.
- Tags:
- pax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2013 07:40 PM
04-10-2013 07:40 PM
Solution>not sure how to just recover one file or directory from the back up tape.
>pax -v -f /dev/rmt/0m # List the items on the tape
You look at the output of the listing above and use that name. If you want /home/foo/bar.out and directory /home/foo/SUB1:
pax -r -v -pe -f /dev/rmt/0m /home/foo/bar.out /home/foo/SUB1
Since you used an absolute path to store the files, you will get the files back in the same path unless you use the -s option:
pax -r -v -k -pe -f /dev/rmt/0m -s:/home/foo/:: /home/foo/bar.out /home/foo/SUB1
Use -k to make sure you have your -s patterns correct. Also use a small archive to disk to make sure you are familiar with the options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2013 06:40 AM
04-11-2013 06:40 AM