Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 880 Bytes

README.md

File metadata and controls

24 lines (22 loc) · 880 Bytes

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"