forge: daily age-encrypted backup of Forgejo git data and the resident identity homes #187
No reviewers
Labels
No labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!187
Loading…
Reference in a new issue
No description provided.
Delete branch "agent-state-backups"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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>/memorynotebooks 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) asagent-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 andauth.json. Every run restore-tests the archive with the forge identity, uploads it to Garagekey-store-backups/agents/(14-day window; the hourly Hetzner replication mirrors the bucket) and keeps the last two locally.OnFailureraises 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 (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.