Skip to content

Fix restore drill for retained forensic database snapshots - #37

Open
Phloraxx wants to merge 1 commit into
mainfrom
hotfix/backup-restore-drill
Open

Fix restore drill for retained forensic database snapshots#37
Phloraxx wants to merge 1 commit into
mainfrom
hotfix/backup-restore-drill

Conversation

@Phloraxx

Copy link
Copy Markdown
Owner

Summary

  • validate only the root SQLite databases that PocketBase would actually boot after restore
  • ignore nested quarantine/manual-safety forensic .db snapshots
  • add regression coverage with a deliberately corrupt nested snapshot

Production finding

The active data.db and rebuilt auxiliary.db are clean. The existing v1 restore drill false-fails on a retained historical quarantine database from the August 11 incident.

Validation

  • go test ./internal/backups -count=1
  • go vet ./internal/backups
  • staticcheck ./internal/backups
  • patched v2 binary passed restore drill against the real post-repair production backup (2 active databases)

No payment/evidence/refund behavior changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant