forge: daily age-encrypted backup of Forgejo git data and the resident identity homes #187

Merged
founder merged 1 commit from agent-state-backups into main 2026-08-23 05:52:54 +00:00
Owner

Founder 2026-08-23 ("do we back up the agent directories?"): no — only the Forgejo database was in the Postgres dump set. Forgejo's git data (every repository: the <identity>/memory notebooks and key.store itself), the per-identity Codex homes (rollouts, model memories, state) and the Claude homes lived only on the forge's root disk.

key-store-agent-state-backup (timer 01:00 UTC, Persistent) archives those paths plus the memory clones beside each checkout (unpushed edits) as agent-state.<stamp>.tar.zst.age, encrypted to the founder + forge age recipients (same list as the id-token backup), excluding caches, tmp, shell snapshots, sqlite WAL side files and auth.json. Every run restore-tests the archive with the forge identity, uploads it to Garage key-store-backups/agents/ (14-day window; the hourly Hetzner replication mirrors the bucket) and keeps the last two locally. OnFailure raises the failure notice.

Validated on the forge with the built script: 21 s, 1.7 GB, 111,449 entries, restore-tested, uploaded. Two manual archives from today are already in the bucket (agent-state.20260823T054647Z, …T054947Z).

Founder 2026-08-23 ("do we back up the agent directories?"): no — only the Forgejo *database* was in the Postgres dump set. Forgejo's git data (every repository: the `<identity>/memory` notebooks and key.store itself), the per-identity Codex homes (rollouts, model memories, state) and the Claude homes lived only on the forge's root disk. `key-store-agent-state-backup` (timer 01:00 UTC, Persistent) archives those paths plus the memory clones beside each checkout (unpushed edits) as `agent-state.<stamp>.tar.zst.age`, encrypted to the founder + forge age recipients (same list as the id-token backup), excluding caches, tmp, shell snapshots, sqlite WAL side files and `auth.json`. Every run restore-tests the archive with the forge identity, uploads it to Garage `key-store-backups/agents/` (14-day window; the hourly Hetzner replication mirrors the bucket) and keeps the last two locally. `OnFailure` raises the failure notice. Validated on the forge with the built script: 21 s, 1.7 GB, 111,449 entries, restore-tested, uploaded. Two manual archives from today are already in the bucket (`agent-state.20260823T054647Z`, `…T054947Z`).
forge: daily age-encrypted backup of Forgejo git data and the resident identity homes
Some checks failed
Deploy: API / Deploy (API) (push) Failing after 3s
Deploy: Web / Deploy (Web) (push) Successful in 2m27s
Release: If Needed / Check (Release Needed) (push) Has been cancelled
2c57f1d34c
Founder 2026-08-23 ("do we back up the agent directories?"): no — only
the Forgejo database was in the Postgres dump set. Forgejo's git data
(every repository, the <identity>/memory notebooks and key.store itself),
the per-identity Codex homes (rollouts, model memories, state) and the
Claude homes lived only on the forge's root disk.

key-store-agent-state-backup (timer 01:00 UTC, Persistent) archives those
paths plus the memory clones beside each checkout (unpushed edits) as
agent-state.<stamp>.tar.zst.age, encrypted to the founder + forge age
recipients (the id-token backup's list), excluding caches, tmp, shell
snapshots, sqlite WAL side files and auth.json. Every run restore-tests
the archive with the forge identity, uploads it to Garage
key-store-backups/agents/ (14-day window; the hourly Hetzner replication
mirrors the bucket) and keeps the last two locally. OnFailure raises the
failure notice. Validated on the forge: 21 s, 1.7 GB, 111k entries.
founder deleted branch agent-state-backups 2026-08-23 05:52:54 +00:00
Sign in to join this conversation.
No labels
No milestone
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
key-store/key.store!187
No description provided.