Add nightly restic backups to Scaleway Object Storage

Three restic jobs share one repository:
- panel (03:30): /var/lib/containers and rootless named volumes, with the
  panel's containers stopped for a consistent copy and started again after
- system (04:00): /etc, /home, /root, /var/lib, plus consistent .dump
  copies of the Forgejo, Nextcloud, Authelia and panel SQLite databases
- maintenance (Sun 05:30): forget/prune and a 2 GB sampled check

Scaleway bills storage and egress, not requests, so objects go to One
Zone, /nix/store and images are left out, all jobs share one cache, and
pruning and checks are weekly and bounded.

Needs secrets/restic-password.age and secrets/restic-env.age to be
created before deploying; BACKUPS.md has the steps and a restore runbook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gUd5tW9VHStkEKmgqu
This commit is contained in:
agent 2026-10-27 08:36:51 +00:00
parent 9aa395814c
commit 79647356f4
4 changed files with 391 additions and 0 deletions

View file

@ -44,6 +44,7 @@
./authelia.nix
./nextcloud.nix
./forgejo.nix
./backups.nix
./containers/hello.nix
agenix.nixosModules.default