General optimations during inventory cleanup

This commit is contained in:
2025-07-14 13:02:06 +02:00
parent b6ee7b9f98
commit e4028fccf4
30 changed files with 27 additions and 26 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