- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cpio tape recovery
Operating System - HP-UX
1823258
Members
3123
Online
109648
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
Forums
Discussions
юдл
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-05-2006 10:32 PM
тАО04-05-2006 10:32 PM
cpio tape recovery
i would like to restore atape which was backed up using cpio command but there is no docummentation of extensions used during the backup process. "cpio -ocvdBumt". how can i recover this tape?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 11:12 AM
тАО04-06-2006 11:12 AM
Re: cpio tape recovery
Many experts in the Omniback / Storage Data Protector forum may know the answer, but I am moving this question to the sys admin area, where I hope someone can help you faster.
Good Luck.
Good Luck.
Omniback and NT problems? double check name resolution, DNS/HOSTS...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 12:29 PM
тАО04-06-2006 12:29 PM
Re: cpio tape recovery
First, you need to exemine the contents of the tape.
cpio -icvtB < /dev/tmt/2m (or whatever your tape device is).
This will list the contents of the tape and you can stop it at any point via Ctrl-C (assuming Ctrl-c is your intr key).
What I am mainly concerned about is that some dingaling backed this up with absolute paths (ie those that begin with "/") then you are going to have to restore to those locations exactly unless you choose to use pax rather than cpio. If the pathnames are relative (ie they begin with "./" or simply "somedir/somefile" then cd to the desired location and execute:
cpio -icvdumB < /dev/rmt/2m
cpio -icvtB < /dev/tmt/2m (or whatever your tape device is).
This will list the contents of the tape and you can stop it at any point via Ctrl-C (assuming Ctrl-c is your intr key).
What I am mainly concerned about is that some dingaling backed this up with absolute paths (ie those that begin with "/") then you are going to have to restore to those locations exactly unless you choose to use pax rather than cpio. If the pathnames are relative (ie they begin with "./" or simply "somedir/somefile" then cd to the desired location and execute:
cpio -icvdumB < /dev/rmt/2m
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 12:31 PM
тАО04-06-2006 12:31 PM
Re: cpio tape recovery
By the way, you can probably speed up the i/o if you reblock through dd. The 'B' cpio argument specifies 5K blocks so we can choose to read in multiple of 5K.
dd if=/dev/rmt/2m ibs=100k obs=5k | cpio -icvdumB
dd if=/dev/rmt/2m ibs=100k obs=5k | cpio -icvdumB
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP