[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

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

Leave a Reply

Your email address will not be published.