How do you exclude a directory that is a symlink?

Wayne Davison wayned at
Sun Mar 5 18:41:19 UTC 2017

On Fri, Mar 3, 2017 at 7:48 AM, Ken Chase <rsync-list-m829 at>

> I think both situations could benefit from a --resolve-cmd-line-links
> switch to resolve COMMAND LINE-SUPPLIED symlinks.

You can specify symlinks in a --relative path with a trailing slash-dot
(and use /./ infix notation to trim paths). For example:

rsync -aivR /some/path/./symlink/. /dest/

That will create /dest/symlink/ and its contents.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list