[Windows Bash] Add Rsync to “Git Bash for Windows”

In last few post we mentioned using bash in Windows by install Git.
It comes with handy *nix tools like grep, find, wget, curl, vim, ssh… but something still missing is rsync
Because it do not mean to be collection of POSIX software for Windows. It is a wont-fix for them.

Git for Windows is based on MSYS2 (As of version Git-SCM 2.13.3)
Unfortunately it does not comes with pacman (Package manager) so there are not official way to install packages.

Furthermore, cwRsync and DeltaCopy does not work in bash environment.

According to this post in serverfault, there are two ways to do:

  1. Install the Git for Windows SDK (which includes pacman).
  2. Install Git inside MSYS2.

I tried both solution but they missed the explorer integration in Git-SCM version.

Well… they both based on MSYS2 and their executable should be compatible

After dig down how pacman on Windows works, I decided to download the package from pacman repository.

Extract it using 7-zip and drop rsync.exe to C:\Program Files\Git\usr\bin and profit!

Likewise, you can find more *nix tools from pacman repository and install it manually.

Update: Original mirror seems down, please download from original repository

6 Replies to “[Windows Bash] Add Rsync to “Git Bash for Windows””

  1. Rysnc was very effective on linux but there is nothing similar to it on windows. My friend told me about GS Richcopy 360. I then started using it, seriously man it helped me a lot and is as effective as rsync. Totally worth it!

Leave a Reply

Your email address will not be published.