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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

include softlink when rcp

Status
Not open for further replies.

kukuluku

MIS
May 2, 2002
56
US
Hello,

We are copying files from one machine to another (Oracle and other files). The rcp doesn't seem to copy all soft link files. Is there a way to do so (maybe with a flag)? How about tar?

Thanks in advance for your input.
 
Like cp, rcp doesn't dig down to softlinks if they are there. I think tar will get all of the soft links, but I usually use find and cpio for large copies like this so I don't miss anything.

Use: /usr/bin/find ${DIR} -follow | /usr/bin/cpio -ocv | /usr/bin/gzip -9v > ${SOMETHING}.cgz

This should get all of your links for you. Then you could just do an ftp and unpack the cgz.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top