- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cpio retrieve a file
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
02-19-2003 09:16 AM
02-19-2003 09:16 AM
cpio retrieve a file
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 09:24 AM
02-19-2003 09:24 AM
Re: cpio retrieve a file
# cpio -icvdxumB < /dev/rmt/2m 'filename'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 09:29 AM
02-19-2003 09:29 AM
Re: cpio retrieve a file
# cpio -icdumv ./tmp/test.txt < /dev/rmt/0m
This command will assume the backup was created using relative path and you should use the exact path name as it is in the tape.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 09:33 AM
02-19-2003 09:33 AM
Re: cpio retrieve a file
# cpio -icdumv "./tmp/shiju/*" < /dev/rmt/0m
This will restore all files from /tmp/shiju to the current directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 09:35 AM
02-19-2003 09:35 AM
Re: cpio retrieve a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 11:11 AM
02-19-2003 11:11 AM
Re: cpio retrieve a file
cpio -itB >/tmp/tape.out (creates output of tape contents)
grep [filename] /tmp/tape.out
cpio -iBdmuvc (output from step 2)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 02:33 AM
02-20-2003 02:33 AM
Re: cpio retrieve a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 02:43 AM
02-20-2003 02:43 AM
Re: cpio retrieve a file
depend on the options used while your tape was created (absolute/relative path)
assuming absolute path is used
# cpio -icdv < /dev/rmt/0m/
(assuming /dec/rmt/0m is the tape drive)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 04:21 AM
02-20-2003 04:21 AM
Re: cpio retrieve a file
If you don't know how the cpio archive was created you can always try and extract the file using pax, eg pax -r -f archive filename
See man pax for the all parameters you need as I can't remember the exact syntax.
Cheers
Keely
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 02:15 AM
09-01-2003 02:15 AM
Re: cpio retrieve a file
with cpio (even if the tape have been created in different groups)?
say the tape consists of several groups of data, created with cpio.
I'm looking for a quick method of extracting all the data-groups on the tape.
regards
Thomas Greig