MSYS2-packages icon indicating copy to clipboard operation
MSYS2-packages copied to clipboard

Rsync failure for symlinks

Open angelog0 opened this issue 7 years ago • 1 comments

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!

angelog0 avatar May 18 '18 22:05 angelog0

Found the same problem. And I tried WSL as well, rsync in WSL creates soft links correctly.

canfoderiskii avatar Nov 21 '21 01:11 canfoderiskii