Automated installation of borg backup under Windows/CygWin
- Create a temporary build folder and place the files from this repository there
 - Download 
setup-x86_64.exefrom CygWin Home Page into build folder - Run 
install.bat, after a while you should end up with CygWin installation inBorgsubfolder - To install, copy the 
Borgsubfolder intoC:\Program Files\(this will require Administrator rights) - Optionally, add 
C:\Program Files\Borginto your WindowsPATHvariable - Delete completely the build folder
 
To install into other folder or prepare 32-bit build, edit install.bat and use different CygWin setup executable.
After installation, use borg like this:
borg init /cygdrive/D/Borg
borg create -C lz4 /cygdrive/D/Borg::Test /cygdrive/C/Photos/
The install script first builds borg inside temporary CygWin subfolder, then installs much smaller release version into Borg subfolder. Built packages are copied over, unnecessary files removed.
Tested with CygWin 2.4.1, borgbackup 1.0.0 on Windows 7 64-bit.