--copy-unsafe-links unexpected behavior with unsafe symlinks

Wayne Davison wayne at opencoder.net
Tue Jan 4 20:41:46 UTC 2022

To be extra clear (since I was overly terse in my hasty answer), here's
your last example fixed for you:

    $ cd ~/dev
    $ rsync --copy-unsafe-links -aivz --delete ~/tmp/TST/tree/

This is how rsync knows where the safe restriction lies -- at the top of
the transfer (the final slash). Thus, your statement about your desired
restriction not being possible is false.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20220104/470b336a/attachment.htm>

More information about the rsync mailing list