We have CENTOS 5.3 on DELL servers. I tried to us following command to copy remote files system to local: scp -rp oracle at ORA2:/home/app/oracle/10.2 . After SCP finish copy, I found some files on source file system using "link" but on target file systems it change to "physical file". Does there has way scp not change "link" setup? Thanks. ___________________________________________________ ??????? ? ???????????????? http://messenger.yahoo.com.tw/
mcclnx mcc wrote:> We have CENTOS 5.3 on DELL servers. I tried to us following command to copy remote files system to local: > > scp -rp oracle at ORA2:/home/app/oracle/10.2 . > > After SCP finish copy, I found some files on source file system using "link" but on target file systems it change to "physical file". > > Does there has way scp not change "link" setup? >If you want to preserve symlinks you probably want to use rsync instead of scp. -- Benjamin Franz
mcclnx mcc wrote:> We have CENTOS 5.3 on DELL servers. I tried to us following command to copy remote files system to local: > > scp -rp oracle at ORA2:/home/app/oracle/10.2 . > > After SCP finish copy, I found some files on source file system using "link" but on target file systems it change to "physical file". > > Does there has way scp not change "link" setup?I've always preferred 'rsync -essh -aHv source host:path' over scp for remote copies. It will generally get everything right and in the case where part of the content is already there it is much more efficient. -- Les Mikesell lesmikesell at gmail.com