- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cpio and rcp
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
тАО09-28-2005 07:16 AM
тАО09-28-2005 07:16 AM
I have a directory on machine A and want to duplicate it on machine B but don't have enough space to create a file archive and don't want to mess with a tape if I can help it.
I have done this before and I thought it was
find . -print | cpio -oam | rexec systemB cd /newdir ; cpio -idvam
but the pipe gets hung up on the change directory
could someone remind me what I am doing wrong or let me know another way to do this.
Thanks
Howard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2005 07:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2005 07:23 AM
тАО09-28-2005 07:23 AM
Re: cpio and rcp
/usr/sbin/vxdump 0f - /dev/vg00/osymmgr | remsh luna '(cd /apps/osymmgr; /usr/sbin/vxrestore -rf -)'
/usr/sbin/vxdump 0f - /dev/vg00/openv | remsh luna '(cd /apps/openv; /usr/sbin/vxrestore -rf -)'
/usr/sbin/vxdump 0f - /dev/vgfin107/orahome | remsh $HOST '(cd /apps/aporacle107; /usr/sbin/vxrestore -rf -)'
/usr/sbin/vxdump 0f - /dev/vgfin107/appsmgr | remsh $HOST '(cd /apps/appsmgr107; /usr/sbin/vxrestore -rf -)'
/usr/sbin/vxdump 0f - /dev/vgfin107/custom | remsh $HOST '(cd /apps/custom107; /usr/sbin/vxrestore -rf -)'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2005 07:23 AM
тАО09-28-2005 07:23 AM
Re: cpio and rcp
Try:
# find . -print | cpio -oam | rexec systemB ( cd /newdir ; cpio -idvam )
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2005 07:28 AM
тАО09-28-2005 07:28 AM
Re: cpio and rcp
It was the remsh that I should have been using instead of rexec
Works like a champ.
Howard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2005 07:30 AM
тАО09-28-2005 07:30 AM
Re: cpio and rcp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2005 07:33 AM
тАО09-28-2005 07:33 AM
Re: cpio and rcp
You can also use , tar and gzip.
Here it is :
------------
At Server A:
# cd /somedir/yourdir
# tar -cvf mydir.tar *
# gzip mydir.tar
# scp mydir.tar.gz serverb:/home/howard
At Server B:
# cd /somedir
# mkdir yourdir
# cd yourdir
# cp /home/howard/mydir.tar.gz .
# tar -xvf mydir.tar
[Note: scp is available if ssh is installed , else rcp or ftp can be used to transfer the file. ]
Enjoy,
Cheers,
Raj.