Skip to content

Nightly pg_dump backup workflow + restore runbook #165

Description

@Miracle656

Background

Wraith's data lives in a single managed Postgres. If it's lost or hits limits, re-indexing mainnet from scratch is slow. A nightly logical backup gives a minutes-not-days restore path. (This is the durability fallback for the mainnet deployment.)

What to build

A free scheduled GitHub Actions workflow that runs pg_dump and uploads the compressed dump to an artifact/release (or an object store), plus a short restore runbook.

Key files

  • .github/workflows/db-backup.yml — new
  • docs/backup-restore.md — new

Suggested execution

git checkout -b ci/nightly-pg-dump
  1. Scheduled workflow (cron) using a DATABASE_URL secret
  2. pg_dump --format=custom → gzip → upload as a dated artifact (retention ~14 days) or release asset
  3. Document restore: pg_restore into a fresh Neon instance, then swap DATABASE_URL
  4. Note per-network dumps (separate testnet/mainnet DBs)

Acceptance criteria

  • Nightly job produces a downloadable dump
  • Secrets used for connection (no creds in the repo)
  • Restore runbook verified end-to-end once
  • Handles both network DBs

Drips Wave · Complexity: Easy · 100 points


Required: Before submitting, join the contributor Telegram so your work can be tracked and counted toward the Stellar Wave: https://t.me/+fxHXq8f1SwlkZDBk

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarea:ciCI/CD and toolingdifficulty:easy~1-3 hourshelp wantedExtra attention is neededpoints:100Easy tier — 100 Wave points

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions