mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 14:41:04 +01:00
11 lines
285 B
Plaintext
11 lines
285 B
Plaintext
|
[Unit]
|
||
|
Description=Backup to USB when it's plugged in
|
||
|
After=local-fs.target
|
||
|
OnFailure=systemd-email@%n.service
|
||
|
|
||
|
[Service]
|
||
|
ExecStart={{ backup_to_usb_script_path }} {{ mount_point }}/{{ backup_to_usb_subdirectory }} {{ backup_to_usb_source_path }}
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|