| 1 | --- |
| 2 | type: decision |
| 3 | id: dcr-db1acbb |
| 4 | status: superseded |
| 5 | title: Phase 0 offsite replication — git-native mirror (a) + restic (c), ZFS send rejected for now |
| 6 | created: 2026-07-04 |
| 7 | --- |
| 8 | |
| 9 | # Phase 0 offsite replication mechanism |
| 10 | |
| 11 | **Decided 2026-07-04.** From the options table in |
| 12 | [roadmap.md Phase 0](../../design/roadmap.md#phase-0--mvp-repos-off-github): a combination of **(a) |
| 13 | git-native mirror** and **(c) restic**. |
| 14 | |
| 15 | - **(a) — hot, git-native second remote.** A post-receive hook on classic-laddie pushes every ref |
| 16 | update to a bare-git remote on a small Hetzner VPS. Push-triggered, so S1's "pushed = replicated |
| 17 | within minutes" durability target holds. |
| 18 | - **(c) — encrypted offsite depth.** Nightly restic backups of the bare-repo directory to a Hetzner |
| 19 | Storage Box: encrypted and deduplicated. |
| 20 | - **(b) ZFS send — rejected for now.** It needs a ZFS-capable receive target (a Storage Box cannot |
| 21 | receive ZFS streams), and the far copy is not a usable git remote. |
| 22 | |
| 23 | Closes the mechanism question tracked by [[oc-fc348f0]]. Immediate follow-up: the operator must |
| 24 | provision the Hetzner VPS and Storage Box before the implementation outcome [[oc-9949561]] can |
| 25 | complete; the implementation itself lives in cosmo. |
| 26 | |
| 27 | **2026-07-11:** superseded by [[dcr-d7952bc]] |
| 28 | ([dcr-d7952bc-phase0-replication-github-transitional.md](./dcr-d7952bc-phase0-replication-github-transitional.md)) |
| 29 | — VPS mirror deferred until GitHub exit; restic layer carried forward. |