i see  that s the error because you are trying to overwrite existing dir with symlink  while  rsync  a  was to fix symlink overwriting broken symlink probably better to write a python script to do the copy  so you can select whatever to copy 