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

2022-01-11 Thread Cristian via rsync
On Sun, Nov 28, 2021 at 12:53 PM Cristian via rsync 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

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

2022-01-04 Thread Wayne Davison via rsync
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/ ~/tmp/XXX/tree/ This is how rsync knows where the safe restriction lies -- at the top of the transfer (the final

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

2022-01-03 Thread Wayne Davison via rsync
Read the section on --copy-unsafe-symlinks and make the change I recommended. That's all there is to it. When a dir name is in the transfer, it is not the top of the transfer tree. It's parent is. This is pretty standard rsync stuff, where trailing slashes are very important to rsync. ..wayne..

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

2022-01-03 Thread Cristian via rsync
Hello Wayne Thank you very much for trying to help, I have the following three observations: 1) As recommended, I have searched the manual of rsync in order to try    to find your interpretation about what is going on but the only relevant    fact that I was able to find was how rsync defines

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

2021-12-31 Thread Wayne Davison via rsync
On Sun, Nov 28, 2021 at 12:53 PM Cristian via rsync 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

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

2021-11-28 Thread Cristian via rsync
Hello all I have a problem with the --copy-unsafe-links option. My environment is presented and the end of the message. I have the following directory structure (I hope the that it will be visible; commands below) TST/ +-- outside1 |    | |    +-- outside1-file.txt | +-- outside2-file.txt |