Menu

Supabase backups and restore drills in GitHub Actions and Buildkite, plus Woodpecker
📰

Supabase backups and restore drills in GitHub Actions and Buildkite, plus Woodpecker

DEV Community: cicd·SuperLede·15 days ago
#UWvwSpqd
#devtocicd#devto#dev#v1#backup
Long article (965 words) — no AI summary yet.
Reading 0:00
15s threshold

A green backup job tells you the dump reached the bucket, not that it restores. A restore drill loads that dump into a throwaway Postgres and checks what came back. On a two-table test database in GitHub Actions, the drill step took 6.8 seconds, Postgres image pull included.

I maintain three CI wrappers around the same open-source backup CLI: a GitHub Action for scheduled Supabase backups , a Buildkite plugin that backs up before your migrations run , and a Woodpecker CI plugin that picks pg_dump by server version . The timings below come from the GitHub Action's test workflow and the Buildkite plugin's end-to-end test.

What all three write

Each run streams a pg_dump custom-format file straight into an S3, R2 or B2 bucket you own, without staging it on the CI machine. Next to it go a RECOVERY.md with the restore commands and a manifest.json with the tables in the schemas you chose ( public by default), estimated row counts and SHA-256 checksums.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.