Giter Site home page Giter Site logo

borgbackup-install's Introduction

BorgBackup-install

Simple Python script to install/update borg backup

What is does:

  • install dependencies (for Debian / Ubuntu)
  • Install/update Borg in venv into: /opt/borgbackup-env/
  • Create symlink in /usr/local/bin/borg

So borg should be callable everywhere ;)

borg-install.py is a cli and a shell.

get the sources

e.g.:

~$ git clone https://github.com/jedie/BorgBackup-install.git
~$ cd BorgBackup-install
~/BorgBackup-install$ $ sudo ./borg-install.py help
Welcome to BordBackup install shell


Documented commands (type help <topic>):
 help        - List available commands with 'help' or detailed help with 'help command'.
 install     - install BorgBackup using virtualenv and pip
 quit        - Exit this shell. (Or just hit Ctrl-C ;)
 uninstall   - remove BorgBackup installation
 update      - update BorgBackup installation

install

To install dependencies for Debian / Ubuntu, create virtualenv and symlinks, call:

~/borgbackup-install$ sudo ./borg-install.py 
Welcome to BordBackup install shell


Documented commands (type help <topic>):
 help        - List available commands with 'help' or detailed help with 'help command'.
 install     - install BorgBackup using virtualenv and pip
 quit        - Exit this shell. (Or just hit Ctrl-C ;)
 uninstall   - remove BorgBackup installation
 update      - update BorgBackup installation

(borg-install) apt_install


____________________________________________________________________________________________________
 *** install the dependencies for Debian / Ubuntu ***
(call: 'apt-get install python3 python3-dev python3-pip python3-virtualenv libssl-dev openssl libacl1-dev libacl1 build-essential libfuse-dev fuse pkg-config')

...
____________________________________________________________________________________________________
 *** Create venv in "/opt/borgbackup-env" ***
(call: 'python3 -m venv /opt/borgbackup-env')
...

____________________________________________________________________________________________________
 *** Update pip in venv ***
(call: '/opt/borgbackup-env/bin/pip3 install --upgrade pip wheel')
...

____________________________________________________________________________________________________
 *** Install "borgbackup[fuse]" via pip ***
(call: '/opt/borgbackup-env/bin/pip3 install borgbackup[fuse]')

Collecting borgbackup[fuse]
  Using cached borgbackup-1.1.15-cp38-cp38-linux_x86_64.whl
Collecting llfuse>=1.3.4
  Using cached llfuse-1.3.8-cp38-cp38-linux_x86_64.whl
Installing collected packages: llfuse, borgbackup
Successfully installed borgbackup-1.1.15 llfuse-1.3.8


 *** Symlink "/opt/borgbackup-env/bin/borg" to "/usr/local/bin" ***

____________________________________________________________________________________________________
(call: 'borg --version')

borg 1.1.15

update

~/borgbackup-install$ git pull origin master
~/borgbackup-install$ sudo ./borg-install.py update
...

update

~/borgbackup-install$ sudo ./borg-install.py uninstall
...

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.