computer-playbook/roles/backup-docker-to-local/templates/backup-docker-to-local.service.j2

7 lines
224 B
Django/Jinja

[Unit]
Description=docker volume backup
OnFailure=systemd-notifier@%n.service cleanup-failed-docker-backups.service
[Service]
Type=oneshot
ExecStart=/usr/bin/python {{backup_docker_to_local_folder}}backup-docker-to-local.py