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

8 lines
229 B
Django/Jinja

[Unit]
Description=pull remote backups
OnFailure=systemd-notifier@%n.service cleanup-failed-docker-backups.service
[Service]
Type=oneshot
ExecStart=/usr/bin/bash {{docker_backup_remote_to_local_folder}}backup-remote-to-local.sh