- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rcp command
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
05-29-2003 01:57 PM
05-29-2003 01:57 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 02:02 PM
05-29-2003 02:02 PM
Re: rcp command
cd /data
find . -print | cpio -ocxa | remsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 02:07 PM
05-29-2003 02:07 PM
Re: rcp command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 02:09 PM
05-29-2003 02:09 PM
Re: rcp command
I would suggest you install ssh on both the boxes. Set up public/private key authentication and then use "scp". It will be much faster and secure as it uses compressesion internally.
You can get Openssh from
http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/openssh-3.6.1p1/
Use the following documentation to setup no-password scp.
http://bumblebee.lcs.mit.edu/ssh2/
Once it is setup, you can use
scp -rp /data your_account@server2:/data
if your_account has write access to /data filesystem.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 02:24 PM
05-29-2003 02:24 PM
Re: rcp command
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 02:36 PM
05-29-2003 02:36 PM
Re: rcp command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 03:28 PM
05-29-2003 03:28 PM
SolutionNOTE: du and bdf will almost never match the original. While the resultant files and directories will be just fine, the occupied space may be larger or smaller then the original. Here are the scenarios:
Smaller: one or several directories grew with hundreds or thousands of files which were subsequently deleted from the directories. The directory (it is also a file) grew in size for the entries but is never reduced when the files are removed. Copying a diectory with lots of empty slots will produce a new directory without the empty slots and thus the destination takes less space. But both directories behave the same.
Larger: By far the most common scenario especially with database systems. A sparse file is a file where there are only a few occupied records but lots of undefined records. When an undefined record is encountered during a serial read, the result is a string of zeros. So when a sparse file is copied, all the zeros will be written and the copied file may many times larger than the original file. Yet, both files behave exactly the same way with applications.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 03:29 PM
05-29-2003 03:29 PM
Re: rcp command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 03:45 PM
05-29-2003 03:45 PM
Re: rcp command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 07:24 PM
05-29-2003 07:24 PM
Re: rcp command
tar cvf - /dirtory/path/to copy | ssh newhost tar -C /newdirpath -xf -
This will tar up the old directory tree, and send to stdout, which ssh wil pipe ot new host. tar on newhost will change to newdirpath and extract the archive from stdin.
GNU tar is available from:
http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25/
You also need:
gettext
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gettext-0.12/
and libiconv
http://hpux.cs.utah.edu/hppd/hpux/Development/Libraries/libiconv-1.9/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 11:23 PM
05-29-2003 11:23 PM
Re: rcp command
another not very fast option could be to installa sw like HP DP.
You can download it for free and have a 60 days try and buy optin.
This sw does the invetory for you and supports large files.
Other way fbackup/frecover with the index option might be the less-cost solution.
There are other threads in this section that tell you more information about the index option and how to use it.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:03 AM
05-30-2003 05:03 AM
Re: rcp command
1. create an nfs mount of server1:/data on server2.
2. Use the attached script to copy server1:/data to server2:/data.
So if on server2, you have the local /data directory and you want to copy the /data_server1 directory (which you mounted via nfs), you simply would use the attached script:
cpdir /data_sever1 /data
(note, the script does a recursive diff on the files, which I commented out, but it could also be easily modified to do a cksum listing as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:03 AM
05-30-2003 05:03 AM
Re: rcp command
1. create an nfs mount of server1:/data on server2.
2. Use the attached script to copy server1:/data to server2:/data.
So if on server2, you have the local /data directory and you want to copy the /data_server1 directory (which you mounted via nfs), you simply would use the attached script:
cpdir /data_sever1 /data
(note, the script does a recursive diff on the files, which I commented out, but it could also be easily modified to do a cksum listing as well.
Good luck!
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 08:10 AM
05-30-2003 08:10 AM
Re: rcp command
It isn't very secure. If you want security, insall secure shell and use scp -p to move everything. This will be fairly fast once the initial connection is made.
I've attached my usual document on how to implement secure shell.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2003 02:17 PM
06-01-2003 02:17 PM
Re: rcp command
cp: bad copy to /diamond/602a_NETNEW/602_NEW_PROGS.tar: read: Permission denied
cp: cannot access data/JCCONTM0.DAT: Value too large to be stored in data type
cp: cannot open data/eligprov/0303/elg/HP0303.ELG: Permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2003 02:29 PM
06-01-2003 02:29 PM
Re: rcp command
http://gatekeep.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2003 03:45 PM
06-01-2003 03:45 PM
Re: rcp command
Now you mentioned tar and NFS at the same time. NFS simply mounts the remote filesystem and you would use standard file commands like cp to transfer the data. rcp (or tar or cpio and remsh or ssh, etc) as mentioned before do not use the NFS system but simply create a data pipe between the two systems. NFS would not be used in that case. For the best performance using a network pipe (and avoid the 2gb limits), use fbackup piped into remsh+frecover on the remote side. The diff and cksum commands could then be used through the NFS connection to compare the resultant copies.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 06:41 AM
06-02-2003 06:41 AM
Re: rcp command
I guess another problem with cp command is a quantity limitation? I also got this error on hundreds of files?
cp: cannot create /diamond/utility/FXELGM20.PGM: Too many open files
cp: cannot create /diamond/utility/runHPR60.bat: Too many open files
cp: cannot create /diamond/utility/dcrscript.ksh: Too many open files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 08:23 AM
06-02-2003 08:23 AM
Re: rcp command
The "glue" that connects the systems is the remsh command.
NFS (because of the overhead) was probably the slowest possible answer in addition to having possible 2GB limitations depending upon the OS and patch levels.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 04:35 PM
06-02-2003 04:35 PM
Re: rcp command
/etc/fbackup -0v -i /tmp/test -f - | compress | remsh 10.0.0.1 -l root "cd /tmp/lund ; uncompress | cat - | \ /etc/frecover -Xrf -"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 05:49 PM
06-02-2003 05:49 PM