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

7 lines
205 B
Django/Jinja

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