feat(backup): restore + verify the external [storage] volume in DR (#188) #193

Sammanfogat
supernaut sammanfogade 1 incheckning från feat/188-dr-restore in i main 2026-07-21 20:52:44 +00:00
Ägare

DR companion to #192 (the #188 storage split): once LFS/packages/attachments live on the dedicated volume, they're archived as forgejo-storage.tar.gz (separate from the named-volume export). This teaches the restore path to bring them back:

  • restore-drill (restore-on-scratch.sh): unpack forgejo-storage.tar.gz, append [storage] PATH to the drill app.ini, and -v it into the forgejo doctor run so storage checks pass.
  • backup-verify: tar -t the storage tarball in the weekly structural check.
  • runbook: restore steps mention unpacking it into /srv/gitborg-lfs.

All guarded on the tarball's presence, so pre-split archives still verify/restore cleanly. This must merge before the #188 cutover (so a post-cutover drill stays green).

DR companion to #192 (the #188 storage split): once LFS/packages/attachments live on the dedicated volume, they're archived as `forgejo-storage.tar.gz` (separate from the named-volume export). This teaches the restore path to bring them back: - **restore-drill** (`restore-on-scratch.sh`): unpack `forgejo-storage.tar.gz`, append `[storage] PATH` to the drill app.ini, and `-v` it into the `forgejo doctor` run so storage checks pass. - **backup-verify**: `tar -t` the storage tarball in the weekly structural check. - **runbook**: restore steps mention unpacking it into `/srv/gitborg-lfs`. All **guarded on the tarball's presence**, so pre-split archives still verify/restore cleanly. This must merge before the #188 cutover (so a post-cutover drill stays green).
supernaut lade till 1 incheckning 2026-07-21 20:50:35 +00:00
feat(backup): restore + verify the external [storage] volume in DR (#188)
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m24s
6426e25ea5
Companion to the storage split (#188): the restore-drill unpacks forgejo-storage.tar.gz, points [storage] PATH at it, and mounts it into the forgejo-doctor run so storage checks pass; the weekly backup-verify tar-tests it; the runbook restore steps mention it. All guarded on the tarball's presence, so pre-split archives still pass.
supernaut sammanfogade incheckning 363ffc09db till main 2026-07-21 20:52:44 +00:00
supernaut tog bort grenen feat/188-dr-restore 2026-07-21 20:52:44 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!193
Ingen beskrivning angiven.