gunk-dev/the-valley

dcr-db1acbb-hetzner-replication-mechanism.md

sourceca98fdc29fbfmain'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**; the current Phase 0 replication decision is [[dcr-d7952bc]]
12([dcr-d7952bc-phase0-replication-github-transitional.md](./dcr-d7952bc-phase0-replication-github-transitional.md)).
13From the options table in
14[roadmap.md Phase 0](../../design/roadmap.md#phase-0--mvp-repos-off-github): a combination of **(a)
15git-native mirror** and **(c) restic**.
16
17- **(a) — hot, git-native second remote.** A post-receive hook on classic-laddie pushes every ref
18 update to a bare-git remote on a small Hetzner VPS. Push-triggered, so S1's "pushed = replicated
19 within minutes" durability target holds.
20- **(c) — encrypted offsite depth.** Nightly restic backups of the bare-repo directory to a Hetzner
21 Storage Box: encrypted and deduplicated.
22- **(b) ZFS send — rejected for now.** It needs a ZFS-capable receive target (a Storage Box cannot
23 receive ZFS streams), and the far copy is not a usable git remote.
24
25Closes the mechanism question tracked by [[oc-fc348f0]]. Immediate follow-up: the operator must
26provision the Hetzner VPS and Storage Box before the implementation outcome [[oc-9949561]] can
27complete; the implementation itself lives in cosmo.