mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-14 00:41:06 +01:00
11 lines
368 B
Django/Jinja
11 lines
368 B
Django/Jinja
[Unit]
|
|
Description=Backup to USB when mounted to {{ backup_to_usb_mount }}
|
|
Wants={{systemctl_mount_service_name}}
|
|
OnFailure=systemd-notifier@%n.service
|
|
|
|
[Service]
|
|
ExecStart=/bin/python {{ backup_to_usb_script_path }} {{backup_to_usb_source}} {{backup_to_usb_destination}}
|
|
ExecStartPost=/bin/systemctl start cleanup-backups.service
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |