gunk-dev/the-valley

dcr-db1acbb-hetzner-replication-mechanism.md

sourceec78a3869595main's published tip history
1.4 KiB · Rendered
1---
2type: decision
3id: dcr-db1acbb
4status: superseded
5title: Phase 0 offsite replication — git-native mirror (a) + restic (c), ZFS send rejected for now
6created: 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)
13git-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
23Closes the mechanism question tracked by [[oc-fc348f0]]. Immediate follow-up: the operator must
24provision the Hetzner VPS and Storage Box before the implementation outcome [[oc-9949561]] can
25complete; 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.