Re: --copy-unsafe-links unexpected behavior with unsafe symlinks
Wayne Davison via rsync <[email protected]>
| Newsgroups | gmane.network.rsync.general |
|---|---|
| Message-ID | <CAHSx_Su=4yudjRtAv_XVAjoPWtZGzDyQbfeUke8VYMjFXaB6bg@mail.gmail.com> |
On Sun, Nov 28, 2021 at 12:53 PM Cristian via rsync <[email protected]> wrote: > $ rsync --copy-unsafe-links -avz --delete tree XXX > In this case, the "tree" directory is a part of the transfer inside the top-of-transfer dir (the current directory). Thus any symlinks that don't try to escape the current directory are considered to be OK. You should instead suffix "tree" with a slash and add "tree" to your destination path: $ rsync --copy-unsafe-links -aivz --delete tree/ host:/old/path/tree/ This is discussed in the man page <https://download.samba.org/pub/rsync/rsync.1> (search for "unsafe"). ..wayne.. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html