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

9 lines
321 B
Plaintext
Raw Normal View History

2023-04-26 22:12:40 +02:00
[Unit]
Description=backing up data
OnFailure=systemd-email@%n.service
2023-04-26 23:26:12 +02:00
ConditionPathExists={{backup_to_swappable_destination_path}}
Wants=backups-cleanup.service
2023-04-26 22:12:40 +02:00
[Service]
Type=oneshot
2023-04-26 23:26:12 +02:00
ExecStart=/usr/bin/bash {{backup_to_swappable_script_path}} {{backup_to_swappable_destination_path}} {{backup_to_swappable_source_path}}