- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- CPIO selective 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
12-08-2005 01:24 AM
12-08-2005 01:24 AM
A customer of me, made a backup tape with the following command : "find / -print | cpio -ocB > /dev/rmt/0m". Now i want to restore only 2 mountpoints (Dirs) : /opt/oracle/* and /oradb/prod_0102/*
Is this possible with cpio, if yes can someone give te exact command ?.
Thanks, Peter Hogenes
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2005 01:27 AM
12-08-2005 01:27 AM
Re: CPIO selective restore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2005 02:05 AM
12-08-2005 02:05 AM
Re: CPIO selective restore
I've started the command, no results yet. I guess it takes a long time to search the files on a DAT72 tape. Let you know monday....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2005 02:52 AM
12-08-2005 02:52 AM
SolutionThis is one the most iomportant differences between fbackup (and commercial backup programs) and primitive Unix tools. fbackup knows where the files are located on the tape and uses a high speed search to position the tape.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2005 02:59 AM
12-08-2005 02:59 AM
Re: CPIO selective restore
cpio -icBvdum < /dev/rmt/0m '/opt/oracle/*' '/oradb/prod_0102'
should be:
cpio -icBvdum < /dev/rmt/0m '/opt/oracle/*' '/oradb/prod_0102/*'
By the way, it's always a good idea to do a
cpio -icBvt < /dev/rmt/0m first to list the files before actually trying to extract them so that you can see exactly what patterns are there (e.g ./opt as opposed to /opt).
You should also modify your backup procedures to not use absolute pathnames because it is difficult to restore those to alternate locations.
It's much better to
cd /
find . | cpio ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2005 06:49 PM
12-11-2005 06:49 PM
Re: CPIO selective restore
It works now. I found out that CPIO is not my favorite backup tool ;-)
But the customer is the boss.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2005 06:50 PM
12-11-2005 06:50 PM