If using Git bash for Windows (MinGW64), I had a very hard time getting rsync to be added to it. kept getting error: dup() in/out/err failed
Instead, using Cygwin worked eventually.
Steps I took to use rysnc in Gitbash for Windows
- Install gitbash for windows
- Install cygwin64
- Add the cygwin path to the Windows path variable
Windows-> System->advanced Setings->Environment Variables
Add a path for C:\cygwin64\bin\
- Close and re-open gitbashNow gitbash will find the rsync.exe in the cygwin\bin
- I was getting an incompatible version error for cygwin1.dll
*** fatal error - cygheap base mismatch detected
- Although some said a reboot will fix this, it did not.
- To resolve the version error, I copied the cygwin\bin directory from an older version of cygwin - version 1.7.30 worked