You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expands #655 (Database backup). Arnaud's ask: "Cloudflare database could be hacked or corrupted. We should back it up regularly."
Goal
A private repo (nemarOrg/nemar-db-backup) that hourly (GitHub Actions cron) backs up the prod D1 (nemar-db) to plaintext .sql committed to git history (point-in-time recovery), is restorable for disaster recovery, and is good enough to run the Worker locally as a fallback to remote CF deployment with minimal change.
Locked decisions (2026-06-18)
New PRIVATE repo nemarOrg/nemar-db-backup (nemar-cli is PUBLIC; dumps contain user emails + argon2 password hashes).
Scope: prod D1 nemar-db only. Vectorize is derived (id-only, rebuildable via reindex); Analytics Engine is telemetry. Neither is backed up.
Plaintext .sql in the private repo (git delta-compresses hourly snapshots; one-command local run). No encryption layer.
Hourly cron; commit only when changed.
Key constraint (verified live)
wrangler d1 export refuses any DB containing an fts5 virtual table (cannot export databases with Virtual Tables (fts5)) — full, --no-schema, and --no-data all fail. Bypass: per-table --table <name> allowlist works. So we export each real table individually, capture schema from sqlite_master, and recreate datasets_fts + triggers on restore. Full research: .context/research-d1-backup-655.md.
Activity
Correct Zarr scope claims and restore dropped specifics
Reorganize AGENTS.md into a map, add a systems inventory (#1107)