added systemd services

This commit is contained in:
nd 2021-03-13 21:00:27 +01:00
parent 420be44f56
commit baa9bd7bed
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
8 changed files with 67 additions and 5 deletions

14
templates/backup-check.j2 Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
set -euo pipefail
{% if backup_backend == 'restic' %}
# restic backend
source /etc/backup-client/restic.env
restic check --read-data
{% endif %}
{% if not backup_backend %}
echo "Noop, backup is handled external"
{% endif %}