| 1 | --- |
| 2 | type: outcome |
| 3 | id: oc-9949561 |
| 4 | status: done |
| 5 | title: Every push replicated — classic-laddie primary + Hetzner offsite + verified restore |
| 6 | created: 2026-07-02 |
| 7 | blocked_by: [oc-fc348f0] |
| 8 | --- |
| 9 | |
| 10 | # Every push replicated |
| 11 | |
| 12 | Done 2026-07-13: the S1 infrastructure work — bare repos on classic-laddie as primary, offsite |
| 13 | replication to Hetzner, and one full restore _performed and verified_, because configured is not |
| 14 | done |
| 15 | ([user-scenarios.md § S1](../../design/user-scenarios.md#s1--my-repos-live-on-my-infrastructure-and-i-can-never-lose-them), |
| 16 | [roadmap.md Phase 0](../../design/roadmap.md#phase-0--mvp-repos-off-github)). The host module lives |
| 17 | in the-valley itself (`flake.nix` + `schema/`, per [[dcr-0f5d9b1]]); consumers — cosmo's hosts — |
| 18 | install and configure it. The work waited on the mechanism decision [[oc-fc348f0]] |
| 19 | ([oc-fc348f0-hetzner-mechanism.md](./oc-fc348f0-hetzner-mechanism.md)). |
| 20 | |
| 21 | What was done: the-valley's primary populated on classic-laddie and canonical origin flipped — |
| 22 | GitHub demoted to a push mirror via write deploy key, the hook pushing explicit head/tag refspecs |
| 23 | per the [[dcr-d7952bc]]-adjacent module fix |
| 24 | ([dcr-d7952bc-phase0-replication-github-transitional.md](../decisions/dcr-d7952bc-phase0-replication-github-transitional.md)). |
| 25 | Replication was verified by checking both sides: marker tag `s1-migration` on both within seconds. |
| 26 | Offsite depth is live — nightly restic to the Hetzner Storage Box plus the box's auto-snapshots — |
| 27 | and a full restore was performed and verified against real data: snapshot `28ce9e00` restored, fsck |
| 28 | clean, `refs/heads/main` hash-identical to the live primary. |