Skip to content

Backups [database & storage] without supabase-cli #22200

Discussion options

You must be logged in to vote

@theranajayant @tristdrum @djshubs @neiled

This is my procedure to backup supabase instance with classic tools.
I'm using only auth + postgres + storage in supabase, no other features will be covered.

  1. Backup all schema using psql / pg_dump. The most import schema (IMO) are: auth,public,storage
  • auth (contains your users)
  • public (contains your data)
  • storage (contains your buckets and links to objects)
  1. Export all buckets using rclone sync (you have to rclone config before)

The re-import process is the opposite, using psql / pg_restore, it works well with data but, you could be blocked for schema as supabase protect superuser role. You can also re-upload all buckets you saved using rclo…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@igorlanko
Comment options

@baptiste-mnh
Comment options

Answer selected by ethicnology
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants