- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Preserving ownership with 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
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
06-08-2003 02:02 AM
06-08-2003 02:02 AM
Preserving ownership with RCP
I must copy a large amount of data from one server to another. On the original server isn't much space left anymore so i can't tar it. I tried to "rcp" it with the "-p" option to preserve ownership, but the owner changed to root. Can someone tell me how i can preserve ownership? (the uid's of the users are on the new server).
Thanks for any reply!
Grz .Bo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2003 02:33 AM
06-08-2003 02:33 AM
Re: Preserving ownership with RCP
modes but uses user/group ip of the user performing rcp as the owner.That can be understood from the rcp man page.
What can be used?
1)NFS mount with "cp -r"
2)rdist command.man rdist
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2003 02:46 AM
06-08-2003 02:46 AM
Re: Preserving ownership with RCP
cd fromDir; tar -cf - . | (remsh otherHost "cd toDir; tar -xf - ")
you'll need to set it up such that your not required to provide a passward, ie .rhosts etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2003 02:47 AM
06-08-2003 02:47 AM
Re: Preserving ownership with RCP
Thanks for your reply!
Since it has been a long time that i worked with rdist it's puzzles me a bit.
Do you have a small example of a distfile for only copying one dir from one server to another?
I don't find the manpage very simple on how to do that.
Thanks again!
Grz. Bo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2003 03:05 AM
06-08-2003 03:05 AM
Re: Preserving ownership with RCP
Another example,
# find /dir | cpio -ov | remsh server "cd /dir ; cpio -idvum"
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2003 03:27 AM
06-08-2003 03:27 AM
Re: Preserving ownership with RCP
See this thread on rdist:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6b99663ce855d511abcd0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2003 03:36 AM
06-08-2003 03:36 AM
Re: Preserving ownership with RCP
Thanks for all your help!
I do have rdist copying my files at this moment and it works just fine. I am certainly go and try all the other options you all provided.
Thanks again all!
Grz. Bo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2003 03:41 AM
06-08-2003 03:41 AM
Re: Preserving ownership with RCP
http://docs.hp.com/hpux/onlinedocs/B2355-90147/00/00/85-con.html
basically build a distfile on source computer in following format:
HOSTS = (remote_host)
FILES = ( /dir1 /dir2 ...)
EXLIB = ( hosts.equiv ) #files not to
update on remote host
my_distribution:
$FILES -> $HOSTS install;
except /usr/include/$EXLIB;
Yeah its not that secure but should be fast at
least :)
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2003 06:07 AM
06-08-2003 06:07 AM
Re: Preserving ownership with RCP
I'v got it running and it's fast indeed!
I don't mind that's insecure: it's a closed environment.
Thanks again!
Grz. Bo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2003 06:14 AM
06-08-2003 06:14 AM
Re: Preserving ownership with RCP
actually if you want secure - can use rsync.