Files
cozystack/internal
Alexey Artamonov 0972690f0d fix(backups): contest a recorded MariaDB dump before deleting it
The size probe records the dump it attributes to a Backup, and it lets
only runs that had already completed contest the attribution. A run can
upload its dump and prune an older run's through maxRetention before its
own operator Backup completes, so the probe of the pruned run can record
the newer run's dump, and deleting that Backup then deleted a dump that
another Backup still restores from.

Deletion now contests the recorded dump against every run on the same
bucket and prefix as they stand at deletion time, the unfinished ones
included, and leaves it behind with a Warning when any could have
written it, as the unrecorded path already does. A run that never
completes therefore keeps every later dump its lifetime covers, which
leaks storage rather than losing a backup. The probe is unchanged here.

Assisted-by: LLM
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
2026-11-09 14:03:21 +03:00
..