Skip to content

v1.24.2: backups keep working after a restore

Choose a tag to compare

@thatbagu thatbagu released this 20 Nov 21:48
bdb9ef9

Fix

Backups keep working after a restore. A restore could leave its restic lock in the repository. Every later backup then saved its snapshot but failed at forget ("repository is already locked"), and the volume's backup stayed Failed. nixlab-restore and nixlab-restore-all now make the next backup unlock the repository first, using VolSync's own mechanism (#61).

Found after an unattended --new-cluster rebuild of a live cluster, where Nextcloud's backup failed on every run.

Upgrading

Nothing to change in vars.nix. If a volume's backup fails with "repository is already locked" since an earlier restore, run sudo nixlab-backup-now <namespace>/<claim> once after setting its ReplicationSource's spec.restic.unlock to any new value.