- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remote copy
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
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
тАО10-25-2002 01:50 AM
тАО10-25-2002 01:50 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2002 01:52 AM
тАО10-25-2002 01:52 AM
Re: Remote copy
can suggest other method?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2002 01:57 AM
тАО10-25-2002 01:57 AM
Re: Remote copy
-p preserve permissions
rcp -rp
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2002 01:58 AM
тАО10-25-2002 01:58 AM
Re: Remote copy
This is the only way it can work...
eg
$ whoami
alice
$ rcp foo wibble:/home/alice/.
$ rcp bar wibble:/home/alice/. -l bob
$ ssh alice@wibble
$ ll -l foo
... alice ...
$ ll -l bar
... bob ...
$ exit
dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2002 02:01 AM
тАО10-25-2002 02:01 AM
Re: Remote copy
do it with this:
echo FILE |cpio -ocB|remsh HOST "cd PATH;cpio -imdvcB"
Replace:
FILE=filename to copy
HOST=destination host name
PATH=destination full path
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2002 02:07 AM
тАО10-25-2002 02:07 AM
Re: Remote copy
After doing a rcp do a ls -l
it will have the same uid and gid of the old machine.
I think you have misunderstood.
1.If the uid and gid of the rcp-ied file matches the local machine uid and gid it will display that owner on the local machine.
2.if the uid and gid does not match any user or group in the /etc/passwd and /etc/group file when you do a ls -l it will only display the uid and gid.
o'lines
you have a very poor point assignment average.
Hope you improve your average.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2002 02:13 AM
тАО10-25-2002 02:13 AM
Solutionrcp -p or
scp -p
If the uid and gid of the file you copied matches to the uid and gid on the remote machine -it will display the owner
If the uid and gid is not identical to any user in the /etc/passwd it will only display the uid/gid of the file when you do 'ls -la'.
+++ If uid 210 belongs to user oracle on machineA, and on machineB uid210 belongs to user operator, the file owner on the remote machine will be user operator +++
That's why it is useful to keep uids/gids identical on different systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2002 04:40 AM
тАО10-25-2002 04:40 AM
Re: Remote copy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2002 07:14 AM
тАО10-28-2002 07:14 AM
Re: Remote copy
you might try this too
tar -cf - *.gz | remsh snoopy "(cd /otherdirectory ; tar -xf - )"
where snoopy is the destination host
But the UID and GUIDs of both systems have to be identical as already mentioned ...
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2002 01:16 PM
тАО10-28-2002 01:16 PM
Re: Remote copy
rsh first_host 'cd DIRECTORY_YOU_THE FILES_IN;tar cvfp - FILE_NAMES'|tar xvfp -
This definitely works since I use it very often. As others pointed the UIDS and the GIDS should exist on both machines for the username to appear when you do a "ls -l". What I also found was, interstingly you cannot retain the sticky bit on the files if it is root owned unless you have root access on the destination machine.
Regards
Govind