Systemd Backup-Scripts for Docker-LVM-Volumes with Borg
Find a file
2018-02-04 16:38:29 +01:00
app borg prune is now working 2018-01-16 08:03:35 +01:00
etc/borg Fixed some minor issues 2018-01-08 21:18:21 +01:00
backup borg prune is now working 2018-01-16 08:03:35 +01:00
borg-backup@.service Fixed some minor issues 2018-01-08 21:18:21 +01:00
borg-backup@.timer Initial commit of the borg-scripts 2017-12-27 21:35:18 +01:00
borg-check.service change check-routine 2018-02-04 16:38:29 +01:00
borg-check.timer change check-routine 2018-02-04 16:38:29 +01:00
check Changed from pschiffe/borg-backup to own borg Docker Container with direct SSH 2018-01-08 08:51:49 +01:00
install Changed from pschiffe/borg-backup to own borg Docker Container with direct SSH 2018-01-08 08:51:49 +01:00
LICENSE Initial commit of the borg-scripts 2017-12-27 21:35:18 +01:00
README.md Update README.md 2017-12-27 21:50:57 +01:00

borg-backup-docker-lvm-systemd

Systemd scripts for backing up lvm-volumes in docker with borg

It depends on the borg-backup docker-container from https://github.com/pschiffe/docker-borg

Usage

  1. Use ./install to link the systemd-service and timer
  2. To set up a new backup service, use the systemctl start borg-backup@**service**.timer syntax
  3. Set up the timer with systemctl edit borg-backup@**service**.timer and use this style:
[Timer]
  OnCalendar=*-*-* 01:00:00
  1. Set up the service with systemctl edit borg-backup@**service**.service ,for example, to backup volume test_data and test_db:
[Service]
Environment="LVM_VOLUMES=**test_data** **test_db**"
  1. If wanted, you can overwrite the BORG_CHECKEnvironment variable for prune and repo-check
[Service]
Environment="[...]"
Environment="BORG_CHECK=true"