Implemented cleanup procedure for failed backups

This commit is contained in:
2023-11-04 14:36:55 +01:00
parent 1a02d833a6
commit 64d8098612
12 changed files with 44 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
[Unit]
Description=Cleans up failed docker volume backups
OnFailure=systemd-notifier@%n.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c '/usr/bin/yes | /usr/bin/bash {{docker_volume_backup_cleanup_folder}}cleanup.sh {{docker_volume_backup_cleanup_machine_id}} {{docker_volume_backup_cleanup_trigger_directory}}'