Is there any way to rsync absolute symlinks alone?
I think you should be able to use the --copy-unsafe-links
option on rsync to copy file data where the symlink points outside of the synchronized folder space but sends just the symlink when the file pointed to is also being synced. This is in addition to --links
(-l
, it's included in -a
) to copy relative symlinks inside the copied hierarchy as symlinks.
If that isn't fine tuned enough, you will probably have to create a list of links you do and don't want to send using find
and pass those as input to rsync
in the form of include/exclude lists.