On Sun, Nov 28, 2021 at 12:53 PM Cristian via rsync <rsync@lists.samba.org>
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").
Hello Wayne
The first time when I read your answer above it when I saw "in the man page" I
looked
in the manual page on my local computer but the explanations for the
|--copy-unsafe-links|
option do not contain the section regarding the "cut-off point"
Now it happened to me to repoen this email and to check the link above and I
had the pleasant surprise to find the part about the "cut-off point" that
explains
what is going on.
Thank you Wayne for your answer.
Cristian.
..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