Systemd Backup-Scripts for Docker-LVM-Volumes with Borg
| app | ||
| etc/borg | ||
| backup | ||
| borg-backup@.service | ||
| borg-backup@.timer | ||
| borg-check.service | ||
| borg-check.timer | ||
| check | ||
| install | ||
| LICENSE | ||
| README.md | ||
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
- Use
./installto link the systemd-service and timer - To set up a new backup service, use the
systemctl start borg-backup@**service**.timersyntax - Set up the timer with
systemctl edit borg-backup@**service**.timerand use this style:
[Timer]
OnCalendar=*-*-* 01:00:00
- 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**"
- If wanted, you can overwrite the
BORG_CHECKEnvironment variable for prune and repo-check
[Service]
Environment="[...]"
Environment="BORG_CHECK=true"