2023-11-04 14:36:55 +01:00
|
|
|
[Unit]
|
2023-12-01 14:50:16 +01:00
|
|
|
Description=Cleaning up failed docker volume backups
|
2024-01-10 11:18:38 +01:00
|
|
|
OnFailure=systemd-notifier.cymais@%n.service
|
2023-11-04 14:36:55 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2024-01-10 23:36:18 +01:00
|
|
|
ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_lock_script }} {{ system_maintenance_services | join(' ') }} --ignore {{system_maintenance_cleanup_services| join(' ') }} --timeout "{{sytem_maintenance_lock_timeout_backup_services}}"'
|
2024-02-07 22:39:22 +01:00
|
|
|
ExecStart=/bin/sh -c '/usr/bin/yes | /usr/bin/bash {{backup_docker_to_local_cleanup_folder}}cleanup-all.sh'
|