MSYS2-packages
MSYS2-packages copied to clipboard
Rsync failure for symlinks
Just for completeness...
rsync suffers the same issue described for tar in #1216.
If bar is an empty directory and foo contains symlinks then
rsync -av foo/ bar/
produces errors like:
rsync: symlink "/home/utente/foo/classic-tesi/bibliografia.bib" -> "../bibstyles/bibliography.bib" failed: No such file or directory (2)
One has to repeat rsync -av foo/ bar/ to transfer also the symlinks...
So, in WSL (Windows SubSystem for Linux) I created a symlink to foo,
foo -> /mnt/c/msys64/home/utente/foo
and here rsync -av foo/ bar/ works without errors... copyinf also the symlinks in a one step!
Found the same problem. And I tried WSL as well, rsync in WSL creates soft links correctly.