Installing Rsync on Windows

UPDATE (2015.12.31) - This method no longer works for newer versions of Git for Windows as they have changed the version of Msys that is being used.

Rsync is a widely used tool to keep copies of files on multiple computers the same. It is considered a standard installed utility on most Linux distros today. There is currently no native version on Windows but thanks to several different ports you can get Rsync via Cygwin or MinGW.

If you are like me you are windows developer by day but do development in multiple platforms on the side. I often find myself needing to move files between my Windows machine and Linux servers, as is the case when I make posts for this blog using Jekyll.

I spend a lot of time doing development work in the command line shell. Even on Windows I prefer working with Git Bash, aka Msysgit, as my command line shell. Msysgit is a stripped down copy of MinGW that includes several unix utilities that are required to make Git work on windows. Unfortunately, Rsync is not one of those utilities.

I will show you how to install Rsync onto your system so it can be used with Git Bash.

Step One

Download “mingw-get-setup.exe” from the MinGW SourceForge Project Site.

Step Two

MinGW Installer

Run the “mingw-get-setup.exe” and click the “Install” button.

MinGW Installer

Keep the default settings and click the “Continue” button.

MinGW Installer

Wait for the installer to download and setup the MinGW Installation Manager and click the “Continue” button.

MinGW Installer

When the MinGW Installation Manager starts up navigate the left side options and select “MSYS”. Then locate and select only the “msys-rsync” bin package.

MinGW Installer

From the Installation drop down menu select “Apply Changes”.

MinGW Installer

Click the “Apply” button to start the install process.

MinGW Installer

Verify that it successfully downloaded and install Rsync.

Step Three

Rsync files

Copy the following four files from the MinGW msys bin folder “C:\MinGW\msys\1.0\bin” to the Git bin folder “C:\Program Files (x86)\Git\bin

  • msys-iconv-2.dll
  • msys-intl-8.dll
  • msys-popt-0.dll
  • rsync.exe

Step Four

Open Git Bash and test that Rsync is working by running

rsync --version

Once you have copied those files and tested rsync you are free to delete the entire MinGW folder from your computer.

Avatar
Alan P. Barber
Software Developer, Computer Scientist, Scrum Master, & Crohn’s Disease Fighter

I specialize in Software Development with a focus on Architecture and Design.

comments powered by Disqus
Next
Previous

Related