The backup process is supposed to clean up when it’s finished, even when there was a failure. But it’s possible that the OS kills the backup process before it’s able to do that cleanup. Reasons I can think of right now:
- the host restarts (maybe because of OS upgrade)
- the Docker container restarts (maybe because the Docker daemon is updated or crashed)
- the system runs out of memory and kills processes
- the process crashes for whatever reason and isn’t able to exit cleanly
I guess the feature request here is: A background job should check if a backup was aborted. In that case it should cleanup temporary artifacts of the backup and send a warning to the admin.