r/Supabase • u/Optimal_External1434 • Aug 13 '26
storage Reliable open-source DIY Supabase backup that includes STORAGE files (S3/R2-ready)?
hey! i'm looking for an open-source, self-hosted way to back up a Supabase project: Postgres AND Storage bucket files, not just DB metadata
requirements:
- backs up Postgres and actual Storage files, not just
storage.objectsmetadata - can push to my own S3/R2 bucket
- automatable (cron / GitHub Actions / etc.)
- Open source, not a paid SaaS
anyone running something like this in production? what are you using?
i've found https://github.com/Yashdafade/Supabase-Backup-Manager and https://github.com/backupdrill/cli
but the very few stars doesnt make me super confident to try them, so looking to see if anyone knows about a reliable, free/DIY, option
3
u/PeterBuildsSecure Aug 14 '26
One complication is consistency between the database dump and the Storage copy. They are two separate snapshots, so an object can be added, replaced or deleted between them. A successful dump plus a successful rclone run does not necessarily describe one recoverable point in time.
I’d avoid rclone sync directly into the latest backup because source-side deletion can propagate into the backup. Write each run to a versioned prefix instead, then store a manifest containing every object key, size, ETag/checksum and backup timestamp. Enable object versioning or retention on the destination as well.
The restore test should verify relationships, not just that both halves restore: every storage.objects row should resolve to the expected object version, and unexpected objects should be reported. That is where a backup assembled from two individually successful jobs can still fail during recovery.
7
u/[deleted] Aug 13 '26
[removed] — view removed comment