Giter Club home page Giter Club logo

luky-borg-backup's Introduction

luky-borg-backup

Automated backup scripts using Borg Backup, systemd and optionally Nextcloud/ownCloud/STACK.

This will backup the source files and folders of your choice to a Borg repository of your choice and optionally synchronize the repository with one of your cloud storage locations (based on Nextcloud, ownCloud or STACK. You can (and should) run it daily and for now it will keep 7 daily, 4 weekly, 12 monthly and unlimited yearly archives of your source files.

Installation

Arch Linux

For Arch Linux, an installation package is available in the AUR which includes all needed dependencies.

Please also check and install the optional dependencies for more functionality

Manual

For a manual installation:

  1. Install borg on your system
  2. Copy luky-borg-backup.conf to folder /etc.

    This should only be done the first time

  3. Copy luky-borg-backup.service and luky-borg-backup.timer to folder /etc/systemd/system or /usr/lib/systemd/system.
  4. Copy luky-borg-backup to folder /usr/bin

Configuration

File /etc/luky-borg-backup.conf contains all configuration options of the backup script. The file is rather self-explanatory, but here are some hints:

  • At least REPOSITORY and SOURCES should be defined.
  • To prevent manual intervention for filling in your repository password interactively, you can define BORG_PASSPHRASE.

Of course, prior to using luky-borg-backup for the REPOSITORY as defined in /etc/luky-borg-backup.conf, you should setup the repository by i.e.:

borg init -e keyfile <repository>

Running every night at 04:00

To run the script every night at 04:00, you can enable and start the related timer by:

systemctl enable luky-borg-backup.timer
systemctl start luky-borg-backup.timer

luky-borg-backup's People

Contributors

alexmekkering avatar rokups avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

luky-borg-backup's Issues

Twee opmerkingkjes

Hey Alex

Is het niet interessant om zstd als standaardcompressiealgoritme te gebruiken? Het presteert beter dan de andere alternatieven die Borg ondersteunt.

Misschien ook interessant om te vermelden dat de mappen (cloud en repo) al moeten bestaan voor wie de code in het scriptje niet begrijpt.

Bedankt voor dit handig tooltje!

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.