I have a nice collection of music on my computer and have been wanting to back it up to my external drive for a very long time. However, my collection grows almost every week and I’d hate to have to copy the entire 60+GB contents all over again to my backup drive. I wanted a piece of software that would do a “incremental backup“. Searching for a free and/or opensource solution led me nowhere until I realized I was using it all along and the solution was right under my nose. At work, we use rsync to get a variety of tasks done which includes incrementally copying data over to remote locations, all under a UNIX environment. So, would rsync work under Windows? I already knew about CygWin so I got about searching installing RSync under Cygwin. Installation was very simple and all it needed was checking “RSync” under the “Net” category during Cygwin setup. Those who already have Cygwin installed, fret not, you can run “setup.exe” as many times as needed to add/remove components.
Once that was done, I set the PATH variable on my machine to include C:\Cygwin\bin . This step lets you run the “rsync” command from outside the “bin” directory.
Now, I opened a Command Prompt and tried a copy from C:\xxxx\Music\ (source) to G:\ (desintation). Fail+Errors. (I won’t tell you what errors as I intend to keep this post simple.) I searched around a bit and found that Cygwin refers to each drive on your Windows machine as a unix folder. So your “C:\” drive would be “/cygdrive/c”. Your “G:\” drive would be “/cygdrive/g”. After this revelation, I modified my command and entered it as follows:
rsync -av --delete /cygdrive/xxxx/Music/ /cygdrive/Music/
RSync instantly started its work and my music started copying over to the new location.
The “-a” option passed to the rsync command stands for archive – means it preserves permissions (owners, groups), times, symbolic links, and devices.
The “-v” option stands for verbose – it prints on the screen what is being copied
The “–delete” option deletes any files from the destination that no longer exist in the source. It is recommended you use this option unless you know what you’re doing.
During the copy I accidentally closed the Command Prompt. I was worried I might have messed up the copy. However, I opened up a new “cmd” window and ran the same command and the copy started right where it stopped and finished successfully.
This method of backing up might not be everyone’s cup of tea, especially for those not so technically inclined. I just wish someone would write a nice GUI wrapper for rsync so people could just choose a source and a destination and the rest could be taken care of by the software.
However, for now, I have placed this command in a batch file (.bat) on my desktop so I can run it whenever I have new music to be backed up. This saves me the trouble of dealing with the command prompt and typing in the command every time. Place a “pause” in the batch file so the command prompt window doesn’t exit after RSync is complete.









