computer-playbook/roles/independent_backup-to-usb/templates/backup-to-usb.service.j2

13 lines
408 B
Plaintext
Raw Normal View History

[Unit]
2023-05-28 16:35:45 +02:00
Description=Backup to USB when mounted to {{ backup_to_usb_mount }}
Wants={{systemctl_mount_service_name}}
After={{systemctl_mount_service_name}}
OnFailure=systemd-email@%n.service
2023-05-28 16:35:45 +02:00
Requires=backups-cleanup.service
After=backups-cleanup.service
[Service]
2023-05-28 16:35:45 +02:00
ExecStart=/bin/python {{ backup_to_usb_script_path }} {{backup_to_usb_source}} {{backup_to_usb_destination}}
[Install]
2023-05-28 16:35:45 +02:00
WantedBy=multi-user.target