backups: only run restic prune on the last backup #323

Merged
teutat3s merged 1 commit from backups-prune-only-once into main 2025-04-02 11:51:06 +00:00

1 commit

Author SHA1 Message Date
a08003f125
backups: only run restic prune on the last backup
After this change, only obs-portal backup will prune the repository of
old snapshots. This is the last backup service to run at 06:00 AM UTC.

This should avoid our nightly backups failing because of the exclusive
lock on the restic repo. We currently start the next backup while the
previous one is still pruning, which makes the newly started one fail
with:

repo already locked, waiting up to 0s for the lock
unable to create lock in backend: repository is already locked by PID 228…
2025-04-02 13:17:22 +02:00