How do you exclude a directory that is a symlink?

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


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

> 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.

..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20170305/1a8e1afd/attachment.html>


More information about the rsync mailing list