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
03-14-2002 11:01 AM
03-14-2002 11:01 AM
cpio
Can I cpio a file from /dev/rmt/0m and place it in the dir of my choice, if so what could the command be.
Many Thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 11:04 AM
03-14-2002 11:04 AM
Re: cpio
cpio -icv
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 11:14 AM
03-14-2002 11:14 AM
Re: cpio
Check this out:
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4de0f0f71bb831ea7a/screen=ckiDisplayDocument?docId=200000048403550
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 11:17 AM
03-14-2002 11:17 AM
Re: cpio
The answer is that it depends. You need to first do a cpio -icvt < /dev/rmt/0m to see if the files were backed up with absolute pathnames. If the pathnames begin with a / then restoring to another directory is difficult but if the cpio was made with relative paths the the above solution will work.
If absolute paths were used, let us know and there are ways to do that as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 11:18 AM
03-14-2002 11:18 AM
Re: cpio
Also, change the directory first and then restore the files:
# cd /home
# cpio -idumv < /dev/rmt/0m
This may help you:
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4de0f0f71bb831ea7a/screen=ckiDisplayDocument?docId=200000048117871
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 12:07 PM
03-14-2002 12:07 PM
Re: cpio
--no-absolute-filenames
In copy-in mode, create all files relative to the current
directory, even if they have an absolute file name in the
archive.
# cd /tmp/temp
# ncpio -iuvdm --no-absolute-filenames
Job done :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 05:38 AM
03-15-2002 05:38 AM
Re: cpio
$ ll /tmp/passwd
/tmp/passwd not found
$ echo '/etc/passwd' | cpio -o >junk.cpio
29 blocks
$ cpio -ir '/etc/passwd'
/tmp/passwd
29 blocks
$ ll /tmp/passwd
-r--r--r-- 1 franks ftp_group 14319 Mar 15 14:38 /tmp/passwd
$
If it is for many files or/and non-interactively, then see pax(1). pax(1) can read (and write) cpio (and tar) archives.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 09:34 AM
04-17-2002 09:34 AM
Re: cpio
Thanks a lot for all your help, much appreciated.
Sorry about the delay, my PC got struck by lightning and took time to fix.
Thanks once again
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 09:52 AM
04-17-2002 09:52 AM
Re: cpio
tongue firmly in cheek,
Jeff