Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rcp Command

Status
Not open for further replies.

Midrange

Vendor
Aug 28, 2002
135
SG
Hi there I've tried to use rcp to copy one directory from one RS6000 server to another Rs6000 server. The authority of the directory/file was copied but not the ownership. Is it also possible to copy the ownership/group of the file?
 
Hi,
What you mean, when you say that you don't get the ownership. Do you get a number instead of a name ? If this is so, then the user (original owner of the file) did not exist on the target system. Please check this out. _______________________________________
greetings
AIXspecial - IBM C.A.T.E
 
Hello Midrange,
the best way to save authority and ownership is to use tar instead rcp.
for exampe:
in machne aaaa you have direstory /aaadir which content you want
to copy into directory bbbbdir in machne bbbb.
MACHNE aaaa
# cd aaaa
# tar -cvf - * | rsh bbbb "cd bbbbdir; tar -xvf -"

regards boria
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top