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

@ -20,4 +20,9 @@ in
# Nextcloud admin password (plaintext, read by the nextcloud service)
"secrets/nextcloud-admin-pass.age".publicKeys = users ++ systems;
# Restic backups (backups.nix): the repository password, and an env file with
# the repository URL and Scaleway S3 keys. See BACKUPS.md.
"secrets/restic-password.age".publicKeys = users ++ systems;
"secrets/restic-env.age".publicKeys = users ++ systems;
}