Code Monkey home page Code Monkey logo

borgmatic-binary's Introduction

Build Status

borgmatic-binary

Overview

Borgmatic is a simple Python wrapper script for the Borg backup software that initiates a backup, prunes any old backups according to a retention policy, and validates backups for consistency. The script supports specifying your settings in a declarative configuration file rather than having to put them all on the command-line, and handles common errors.

borgmatic-binary builds a binary distribution of the three borgmatic binaries using PyInstaller; its purpose is to provide a simple binary installation option not requiring a full Python installation. It is similar to the stand-alone borg binary availble from the borg download page.

Releases

Binary versions for 64-bit Linux systems can be downloaded from the releases page; they track the official borgmatic releases. For other or non-Linux platforms, binaries can be build manually (see below), but require a working Python 3 installation.

Installation

Unpack the borgmatic-<version>-<architecture>.tar.gz archive and move the four borgmatic executables (borgmatic, generate-borgmatic-config, upgrade-borgmatic-config and validate-borgmatic-config) from the subdirectory bin to a convenient location somewhere in your PATH, e.g.:

tar -xvf borgmatic-<version>-<architecture>.tar.gz
sudo cp borgmatic-<version>-<architecture>/bin/* /usr/local/bin

When installing in a system directory, e.g. into /usr/local/bin (as in the example above), root permissions or using the sudo command will be necessary.

Building manually

Borgmatic requires Python 3; therefore the build will fail if the default python has an older (2.x) version. The ideal setup is to work in a vanilla virtualenv for python3, in which pyinstaller is installed with:

pip install pyinstaller

The build process will install borgmatic into the current python environment. PyInstaller can make use UPX if it is installed; otherwise, the binaries will still be build, but require more space.

Note: With recent a recent version of pip, there seems to be a problem when trying to install packages into a virtual environment with --system-site-packages enabled; it results in an error message stating that

AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'

A workaround is to use

pip install --no-use-pep517 pyinstaller

for the time being. See this and this issue for pip and setuptools, respectively.

After cloning the repository, the following make targets can be used:

make            # Builds binaries for the current system file
make dist       # Creates the distribution .tar.gz file
make clean      # Cleans up binaries
make realclean  # Cleans up binaries and the downloaded borgmatic source code
make distclean  # Cleans up binaries, downloaded borgmatic sources and the distribution .tar.gz file

After a make, the binaries build are available in the directory borgmatic-<version>/dist; they will be removed by make clean.

Reporting issues

If you find issues, please open a ticket on the issue tracker.

borgmatic-binary's People

Contributors

clappingmonkey avatar cmarquardt avatar necessary129 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.