Supabase
12 min read

How to Backup Supabase Database: Complete Tutorial

Master Supabase database backups with our comprehensive guide. Learn pg_dump, automated backups, and restore procedures using Database Vault.

How to Backup Supabase Database: Complete Tutorial

Understanding Supabase Backups

Supabase is built on PostgreSQL, which means you can use standard PostgreSQL backup tools. However, Supabase also provides connection pooling and specific configurations that require careful handling. Database Vault simplifies this process.

How to Backup Supabase with Database Vault

Step 1: Get Your Supabase Connection String

Find your Supabase connection details:

  1. Go to your Supabase project dashboard
  2. Navigate to Settings → Database
  3. Find the "Connection string" section
  4. Copy the connection string (URI format)

Format: postgresql://postgres:[YOUR-PASSWORD]@db.[PROJECT-REF].supabase.co:5432/postgres

Supabase dashboard showing connection string location

Step 2: Add Supabase to Database Vault

Add your Supabase database to Database Vault:

Add Supabase database dialog

Important Security Note:

Use the connection pooler connection string for better performance, or the direct connection string for full pg_dump compatibility. Never share your database password publicly.

Step 3: Configure Backup Settings

Supabase databases benefit from regular backups. Configure your preferred schedule:

Supabase backup configuration

Supabase Backup Best Practices

Use Connection Pooler for Production

Supabase connection pooler handles connection limits better for automated backups.

Backup During Low-Traffic Periods

Schedule backups during off-peak hours to minimize impact on your application.

Include All Schemas

Ensure your backup includes all schemas, including public, auth, and storage schemas.

Ready to Automate Your Database Backups?

Start protecting your databases today with Database Vault. Get automated backups, secure storage, and easy restoration.