Optimized local backup code

This commit is contained in:
2023-05-29 01:12:35 +02:00
parent 9736d651c6
commit 3215e9fd65
2 changed files with 9 additions and 9 deletions

View File

@@ -1,13 +1,11 @@
[Unit]
Description=Backup to USB when mounted to {{ backup_to_usb_mount }}
Wants={{systemctl_mount_service_name}}
After={{systemctl_mount_service_name}}
OnFailure=systemd-notifier@%n.service
Requires=backups-cleanup.service
After=backups-cleanup.service
[Service]
ExecStart=/bin/python {{ backup_to_usb_script_path }} {{backup_to_usb_source}} {{backup_to_usb_destination}}
ExecStartPost=/bin/systemctl start backups-cleanup.service
[Install]
WantedBy=multi-user.target