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

11 lines
368 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}}
2023-05-28 22:17:33 +02:00
OnFailure=systemd-notifier@%n.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}}
2023-05-29 01:12:35 +02:00
ExecStartPost=/bin/systemctl start backups-cleanup.service
[Install]
2023-05-28 16:35:45 +02:00
WantedBy=multi-user.target