- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to use cpio to transfer files from one server ...
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
Discussions
Forums
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
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
тАО06-22-2004 05:39 AM
тАО06-22-2004 05:39 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 05:41 AM
тАО06-22-2004 05:41 AM
Re: how to use cpio to transfer files from one server to another
find . -print |cpio -pdumxl /otherdir
That's my method, anyway.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 05:46 AM
тАО06-22-2004 05:46 AM
Re: how to use cpio to transfer files from one server to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 05:49 AM
тАО06-22-2004 05:49 AM
Re: how to use cpio to transfer files from one server to another
That's where NFS comes in. I'm starting from the target server when I do my "cd /nfs/otherserver/dirname". If you're not using NFS, then the technique would obviously need to be different.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 05:50 AM
тАО06-22-2004 05:50 AM
Re: how to use cpio to transfer files from one server to another
Try this syntax
# find . -print | cpio -pdmuv > /tmp/myarchive.cpio
Test it out, but this syntax should keep the ownerships and permissions intact.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 05:57 AM - last edited on тАО04-18-2017 12:47 AM by Parvez_Admin
тАО06-22-2004 05:57 AM - last edited on тАО04-18-2017 12:47 AM by Parvez_Admin
Solutiona link to where this has been answered before
[Broken link removed on <4/18/2017> by Mod]
On machine A
=============
# cd /data2
# (find . -xdev|cpio -coax) | remsh machineB "cd /data2;cpio -icdmula"
and you can use tar in a similar way
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 05:58 AM
тАО06-22-2004 05:58 AM
Re: how to use cpio to transfer files from one server to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 06:02 AM
тАО06-22-2004 06:02 AM
Re: how to use cpio to transfer files from one server to another
It looks like Curt's solution should do the job for you.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 06:03 AM
тАО06-22-2004 06:03 AM
Re: how to use cpio to transfer files from one server to another
# cd /source
# find . | cpio -ov | remsh server_name " cd /copy ; cpio -idvum "
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 06:13 AM
тАО06-22-2004 06:13 AM
Re: how to use cpio to transfer files from one server to another
(find . -xdev|cpio -coa) | remsh serverB "cd /p01; cpio -icdmul"
The -a and -m were exclusive and it was important to have it on for the first cpio and to have the -m for the second.