Rsync (cwrsync) on Gitbash. Source and destination cannot be deleted. [Windows 7]

I am trying to synchronize a local path with another drive using Git Bash on Windows 7. I downloaded cwRsync and copied the files to my Git Bash directory. I can run rsync, but the following command gives me problems

rsync -av / c / 00-dev / 05-batch / f / RSYNC / The source and destination cannot be deleted. Rsync error: syntax or usage error (code 1) on main.c (1135) [receiver = 3.0.6]

Both paths are correct, but not synchronized.

+7
windows git-bash rsync cwrsync
source share
1 answer

Workaround: from cd to /c and rsync using relative paths.

So this works:

 cd /c touch temp/test.txt rsync temp/test.txt temp/test2.txt 

while this does not happen even if you cd before /c :

 $ rsync /c/temp/test.txt /c/temp/test2.txt The source and destination cannot both be remote. 

Tested with Git Bash, which comes with git 2.9.0.windows.1 .

+6
source share

All Articles