Broken links -> Problem using: --exclude together with --copy-links


I found a nice solution to create a list of broken links for the exclution together with rsync.

But if I use --copy-links together with --exclude I get an error with broken links.

How can I syncing files and links (to AWS) but ignoring broken links?