| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-48c8868 |
| 4 | status: raw |
| 5 | title: "Separate store-specific replication from common backup requirements" |
| 6 | created: 2026-07-13 |
| 7 | source: musing during the S1 migration, 2026-07-13 |
| 8 | --- |
| 9 | |
| 10 | # Separate store-specific replication from common backup requirements |
| 11 | |
| 12 | Future projects may keep important state outside Git. Live replication will need mechanisms suited |
| 13 | to each store, while point-in-time backup can share a common policy and storage layer. |
| 14 | |
| 15 | Git can replicate through push mirrors. A database may use its transaction log, and an object store |
| 16 | may provide replication rules. Each store type would declare how it maintains a current remote copy. |
| 17 | |
| 18 | Restic can protect the paths supplied by different stores. Those stores must first provide a |
| 19 | consistent backup source. A running database may need a dump or quiescing step; copying its files |
| 20 | alone may provide only crash-consistent data. |
| 21 | |
| 22 | Filesystem snapshots could help prepare stable input for backup. This use is separate from the |
| 23 | choice of a live Git replication mechanism in |
| 24 | [[dcr-d7952bc]](../decisions/dcr-d7952bc-phase0-replication-github-transitional.md). |
| 25 | |
| 26 | Deployed-service data, such as a remediation notebook or home-automation state, motivates the idea. |
| 27 | Such data needs an explicit backup declaration even when it lives outside the valley data directory. |
| 28 | [S4](../../design/user-scenarios.md#the-rest-of-the-ladder) is the scenario where deployed-service |
| 29 | state becomes central. |
| 30 | |
| 31 | [[dcr-0f5d9b1]](../decisions/dcr-0f5d9b1-cue-config-host-module.md) describes the configuration's |
| 32 | nested Git store. Expanding the supported store types remains exploratory under the current |
| 33 | one-repository project boundary. |