Supabase Backups Exclude Storage Files, Leaving Uploads Silently Unprotected
Supabase's built-in backup methods — including daily backups, PITR, and pg_dump — only capture database metadata for stored files, not the actual file bytes, which reside on a separate S3 backend. This means a seemingly successful database restore can leave all user-uploaded files broken, even though SQL queries show correct row counts with no errors. Supabase exposes its storage backend via an S3-compatible endpoint, allowing users to sync files externally using tools like rclone or the AWS CLI to destinations such as Cloudflare R2 or Backblaze B2. Experts recommend scheduling both the file sync and the database dump together to ensure metadata and files remain consistent at the same point in time. Users should also account for Supabase egress costs — $0.09 per GB beyond plan allowances — when planning regular storage backups.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in