when using "--copy-links" and there is a symlink which points to the same directory rsync should not follow. Else it runs into an endless loop and throws"
"failed: Too many levels of symbolic links (40)"
This problem still exists in rsync v3.2.3. `--copy-links` cannot be used when symlink loops are present.
Since find is one of the few utilities that actually corrects for symlink loops you can use it as a workaround. Something like:
cd /source/path ; find -L . -print | rsync ... --copy-links --files-from=- ./ /target/path/