mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-30 00:11:03 +01:00
9 lines
321 B
Django/Jinja
9 lines
321 B
Django/Jinja
[Unit]
|
|
Description=backing up data
|
|
OnFailure=systemd-email@%n.service
|
|
ConditionPathExists={{backup_to_swappable_destination_path}}
|
|
Wants=backups-cleanup.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/bash {{backup_to_swappable_script_path}} {{backup_to_swappable_destination_path}} {{backup_to_swappable_source_path}} |