Skip to content

v1.25.0: as-of restores find same-day backups; nix run .#rekey

Latest

Choose a tag to compare

@thatbagu thatbagu released this 21 Nov 12:33
b7aba8c

Highlights

Restores "as of" a backup find it, even later the same day (#65)

restic's forget kept only the newest backup of each day. A --new-cluster rebuild backs everything up, then the new cluster takes its first backup of its fresh volumes the same day, and that backup's forget deleted the rebuild's. restore-all --as-of then silently restored an older snapshot. On a live cluster, Pi-hole and WireGuard came back as they were a day earlier. Per-app backups now also keep every backup of the last 7 days (retain.within). With one backup a day, that costs nothing extra.

nix run .#rekey: replace the age key safely (#62)

The documented manual steps could leave nodes unable to decrypt secrets.yaml. rekey adds the new key next to the old one everywhere (your workstation, every node, the cluster's copy) and re-encrypts secrets.yaml for it. After you push, rekey --finish removes the old key everywhere.

Docs (#64)

  • A troubleshooting page: symptom → which tool to run.
  • What nixlab's version numbers mean for you.

Upgrading

Nothing to change in vars.nix. If you set backups.apps.retain yourself, consider adding within = "7d";.