DC-038: claim for Hermes
CI / Test & Lint (push) Has been cancelled
CI / Security audit (push) Has been cancelled

This commit is contained in:
Hermes
2026-07-13 13:22:57 -07:00
parent fdfe37fcc4
commit 2f583e176e
+2 -2
View File
@@ -190,8 +190,8 @@
## P2 — Polish & DX
### DC-038: Backup trigger.json + result.json in dashcaddy-update.sh — enable one-command rollback
- **status:** todo
- **owner:** unclaimed
- **status:** in-progress
- **owner:** hermes
- **details:** During the DC-033 fix, recovering from the failed v1.14.4 update required manually mv'ing `trigger.json.processing` back to `trigger.json`, manually running `start.sh`, etc. — because the backup mechanism in `dashcaddy-update.sh` (lines 318-327) only backs up code + data, not the trigger/result state. Fix: in the `backup_data_dir` function (or new `backup_update_state` function), also copy `${UPDATES_DIR}/trigger.json` and `${UPDATES_DIR}/result.json` into the versioned backup directory so rollback tooling can restore them. Effort: ~15 min.
- **impact:** Faster incident recovery. Currently takes 5-10 manual steps to roll back a failed update; would take 1.