why scp command not copy links from local copmuter to other ( how to copy the links)
as
scp -rp dir linux:/dir_target
remark in dir I have files and links
|
why scp command not copy links from local copmuter to other ( how to copy the links) as
remark in dir I have files and links
| |||||
feedback
|
|
If I understand what you want correctly. You want to exactly mirror dir on the local machine to dir_target on linux, and it is copying the contents of the symlink, rather than copy the symlink itself. To make an exact duplicate, you need to use rsync instead of scp.
I suspect that will have the desired result. I generally use rsync anyway because it will only copy files that need to be copied, and generally is more intelligent than scp. | |||
|
feedback
|