Coder Social home page Coder Social logo

borg-cygwin's Introduction

borg-cygwin

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.exe from CygWin Home Page into build folder
  • Run install.bat, after a while you should end up with CygWin installation in Borg subfolder
  • To install, copy the Borg subfolder into C:\Program Files\ (this will require Administrator rights)
  • Optionally, add C:\Program Files\Borg into your Windows PATH variable
  • 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.

borg-cygwin's People

Contributors

digidream avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

borg-cygwin's Issues

Allow to call borg.bat from any path

Relative path to call bash interpreter does not work outside of CygWin folder. Must be replaced with absolute path, but this requires to know it.

After fix, the CygWin folder can be installed in e.g. C:\Program Files\Borg and PATH set there.

install.bat breaks if build directory path contains spaces

Hi! First off, thanks so much for this, it's an awesome solution and has made my life noticeably easier.

This issue is just because I spotted a problem when I was running install.bat from C:\Users\Tom Spurling\Downloads. Admittedly this was a rather silly decision, but the result was that C:\Users\Tom got created and the installer broke halfway through after this got used as the path for everything including the things that should be in subdirectories.

I'm guessing this is to do with argument quoting in the batch file, but I am afraid I know almost nothing about Windows batch scripting. Is there an easy solution? and/or would it be worth mentioning in the readme that the working directory must be spaceless?

Thanks again,
Tom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.