Optimized svc-bkp-loc-2-usb

This commit is contained in:
2025-07-15 20:29:01 +02:00
parent 5e83f306b4
commit f6c767f122
6 changed files with 43 additions and 22 deletions

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Backup to USB when mounted to {{ backup_to_usb_mount }}
Wants={{systemctl_mount_service_name}}
OnFailure=sys-alm-compose.cymais@%n.service
[Service]
Type=oneshot
ExecStart=/bin/python {{ backup_to_usb_script_path }} {{backup_to_usb_source}} {{backup_to_usb_destination}}
ExecStartPost=/bin/systemctl start sys-cln-backups.cymais.service
[Install]
WantedBy=multi-user.target