- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rcp question
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
тАО05-22-2008 11:30 PM
тАО05-22-2008 11:30 PM
rcp -rp servera:/devs/datablitz/cellc/BACKUP .
This works but its coming across owned by root:sys, what am I doing wrong?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2008 11:41 PM
тАО05-22-2008 11:41 PM
SolutionUsing "rcp"? "man rcp" ("-p") may be a
little ambiguous (and I don't see your HP-UX
version anywhere), but from what I've read,
it's not clear to me that "rcp -p" would
preserve owner:group.
Why not use a "tar" pipeline? (A quick forum
search for which should find examples and
additional reasons to avoid anything which
acts at all like "cp -r".)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 12:05 AM
тАО05-23-2008 12:05 AM
Re: rcp question
yeah I have just realised this after reading the man pages, D'oah.
I used rcp -rp in the end and changed the permissions once it finished and all was fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 06:06 AM
тАО05-23-2008 06:06 AM
Re: rcp question
Perhaps. For a possible reason to avoid
methods like "cp", see the demo in:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1203742
If you have no symbolic or (multiple) hard
links in what you copy, or if your "cp"-like
program is smarter than that one, then you
may escape this sort of hazard, but why take
the chance, when there's at least one more
trustworthy method?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 09:19 AM
тАО05-23-2008 09:19 AM
Re: rcp question
For such copy I personally prefer tar:
remsh servera "cd /devs/datablitz/cellc; tar cf - BACKUP" |" cd /home; tar xf -"
Even better option is rsync, if you need to copy directory and after that to copy only updates
rsync -avH servera:/devs/datablitz/cellc/BACKUP /home/
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 10:36 AM
тАО05-23-2008 10:36 AM
Re: rcp question
u have to check u .rhosts file
if u want to execute command on second sever while u sitting on first one u can execute remsh
if u want to do rcp u should configure .rhosts file properly
thanks and regards
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 01:06 PM
тАО05-23-2008 01:06 PM
Re: rcp question
> .rhosts file properly
Well, duh. Do you have any reason to believe
that he doesn't know this already? Or that
he hasn't done it already?
> This works but [...]
"This works" usually means that something
works. Or at least it does among people who
can spell "you".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2008 12:36 AM
тАО05-27-2008 12:36 AM
Re: rcp question
yeah the first thing I did was the .rhosts file entry:-)