How do you exclude a directory that is a symlink?

Paul Slootman paul+rsync at wurtel.net
Fri Mar 3 13:10:21 UTC 2017


On Fri 03 Mar 2017, Steve Dondley wrote:

> I'm trying to rsync a directory from a server to my local machine that has
> a symbolic link to a directory I don't want to download. I have an
> "exclude" option to exclude the symlink which works fine. However, if I add
> a --copy-links option to the command, it appears to override my "exclude"
> directive and the contents of the symlinked directory gets downloaded
> anyway.

You don't say explicitly, is the target of the symlink inside or
outside the source directory?


Paul



More information about the rsync mailing list