Architecture and disaster-recovery doc #11

Merged
thodkatz merged 4 commits from change/architecture-doc into main 2026-11-05 12:51:35 +00:00
Owner

Plan (change mode)

What and why. The user asked for one doc of the whole setup beyond the stacks: machines, disks, the
StorageBox, the rclone remotes (one is encrypted), where configs and keys live, and a recovery use case:
/mnt/data is lost, restore with rclone. The facts came from the user (2026-11-05: the laptop is
thodkatz-x1, not the NixOS host; /mnt/backup is a second disk on it) and from vps/rclone/diagnose.sh's log.

Files.

  • docs/guides/architecture-and-recovery.md (new): machines and disks, StorageBox layout, rclone remotes and
    keys, backup flows and their gaps, the /mnt/data restore.
  • AGENTS.md: a Read on demand row; the track's Current work line removed (its only unit).
  • docs/README.md: an index row.
  • BACKLOG.md: Next item to copy the crypt keys and LUKS header backup off the laptop (waits on the user);
    the backup redesign item now names the gaps it must close.

Check. The Setup check passes (caddy validate + upstreams: check=0); sync-agents.py --check exits 0;
every path the guide names exists in the tree or is quoted from backup/sync.sh / the diagnostic log.

Rules removed or rewritten (AGENTS.md): none; one Read on demand row added, the finished track's
Current work line dropped.

Nothing to deploy. The restore steps were not run (no rclone, LUKS disk or StorageBox access here).

Status: ready for the local review round.

🤖 Generated with Claude Code

## Plan (change mode) **What and why.** The user asked for one doc of the whole setup beyond the stacks: machines, disks, the StorageBox, the rclone remotes (one is encrypted), where configs and keys live, and a recovery use case: `/mnt/data` is lost, restore with rclone. The facts came from the user (2026-11-05: the laptop is `thodkatz-x1`, not the NixOS host; `/mnt/backup` is a second disk on it) and from `vps/rclone/diagnose.sh`'s log. **Files.** - `docs/guides/architecture-and-recovery.md` (new): machines and disks, StorageBox layout, rclone remotes and keys, backup flows and their gaps, the `/mnt/data` restore. - `AGENTS.md`: a *Read on demand* row; the track's *Current work* line removed (its only unit). - `docs/README.md`: an index row. - `BACKLOG.md`: *Next* item to copy the crypt keys and LUKS header backup off the laptop (waits on the user); the backup redesign item now names the gaps it must close. **Check.** The *Setup* check passes (caddy validate + upstreams: `check=0`); `sync-agents.py --check` exits 0; every path the guide names exists in the tree or is quoted from `backup/sync.sh` / the diagnostic log. **Rules removed or rewritten** (`AGENTS.md`): none; one *Read on demand* row added, the finished track's *Current work* line dropped. Nothing to deploy. The restore steps were not run (no rclone, LUKS disk or StorageBox access here). Status: ready for the local review round. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed-off-by: theo <thodkatz@pm.me>
The machines, disks, StorageBox layout, rclone remotes and keys existed only in
the user's head and in a session's diagnostic log. The guide writes them down,
leads with the one single point of failure (the secret: crypt keys and the LUKS
header backup live only on the laptop), and walks the restore of a lost
/mnt/data from the desk disk or the StorageBox, with rclone copy rather than
sync.sh, whose rclone sync would delete the remote copies from an empty disk.

The backup gaps it finds go to the backup redesign's backlog line, the key
copy to a new Next item, and the track's Current work line goes: this was its
only unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
thodkatz changed title from WIP: Architecture and disaster-recovery doc to Architecture and disaster-recovery doc 2026-11-05 12:49:26 +00:00
thodkatz referenced this pull request from a commit 2026-11-05 12:51:05 +00:00
Correctness: sudo and chown for the new disk, the secret: remote's underlying
remote stated as unknown with both cases, the right symptom of wrong crypt keys,
an ente check that skips .minio.sys and only compares sizes, ente's copy marked
not servable or consistent, /mnt/backup's actual contents, the .env/data row.
Methodology: no permission to rerun sync.sh, sync.sh described as the laptop's
in AGENTS.md and backup/README.md, the backlog's 'same diagnosis' reference
made explicit, and the key-copy item names the guide text it will rewrite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
Author
Owner

Local review round (correctness, methodology)

Correctness:

  1. medium: secret:'s underlying remote unknown (own sftp remote or backup_vps: via the VPS mount); step 3 assumed one.
  2. medium: new disk mounted root-owned; commands need sudo, mkdir -p, chown.
  3. low: wrong crypt keys show an empty list / decrypt errors, not scrambled names.
  4. low: "likewise" check breaks for ente (.minio.sys, hashing over sftp).
  5. low: ente copy is file-level, not servable by MinIO nor consistent while the old ente runs.
  6. low: /mnt/backup holds only documents, archived, selfhosted/services.
  7. low: "decrypted copy" misleading: that data was never encrypted.
  8. low: .env/data/ row overstated setup.sh, missed Plane's backup.sh.
  9. low: sync.sh is not purely "outwards".

Methodology:
10. medium: BACKLOG's "from the same diagnosis" now pointed at the new item.
11. medium: "Run it again once step 5 passes" contradicted backup/README.md (don't run).
12. low: AGENTS.md and backup/README.md described sync.sh as the host's.
13. low: guide's "only copy" goes stale once keys are copied; the backlog item should say it rewrites the guide.
14. low: memory storage-and-keys-layout to delete after merge.

Replies

1–9: fixed in 650a2df (1: both cases stated, user asked to record which; handoff names it).
10–13: fixed in 650a2df.
14: done after the merge (agent memory, outside the repo).

Checks: sign-off branch check: clean; sync-agents.py --check: exit 0; Setup check: exit 0

## Local review round (correctness, methodology) Correctness: 1. medium: `secret:`'s underlying remote unknown (own sftp remote or `backup_vps:` via the VPS mount); step 3 assumed one. 2. medium: new disk mounted root-owned; commands need `sudo`, `mkdir -p`, `chown`. 3. low: wrong crypt keys show an empty list / decrypt errors, not scrambled names. 4. low: "likewise" check breaks for ente (`.minio.sys`, hashing over sftp). 5. low: ente copy is file-level, not servable by MinIO nor consistent while the old ente runs. 6. low: `/mnt/backup` holds only documents, archived, selfhosted/services. 7. low: "decrypted copy" misleading: that data was never encrypted. 8. low: `.env`/`data/` row overstated `setup.sh`, missed Plane's `backup.sh`. 9. low: `sync.sh` is not purely "outwards". Methodology: 10. medium: BACKLOG's "from the same diagnosis" now pointed at the new item. 11. medium: "Run it again once step 5 passes" contradicted `backup/README.md` (don't run). 12. low: `AGENTS.md` and `backup/README.md` described `sync.sh` as the host's. 13. low: guide's "only copy" goes stale once keys are copied; the backlog item should say it rewrites the guide. 14. low: memory `storage-and-keys-layout` to delete after merge. ## Replies 1–9: fixed in 650a2df (1: both cases stated, user asked to record which; handoff names it). 10–13: fixed in 650a2df. 14: done after the merge (agent memory, outside the repo). Checks: sign-off branch check: clean; `sync-agents.py --check`: exit 0; *Setup* check: exit 0
thodkatz deleted branch change/architecture-doc 2026-11-05 12:51:35 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thodkatz/selfhosted!11
No description provided.