Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: downloading logical backups (#33225)

Charisf1ba6cbb9079
diff --git a/apps/docs/content/troubleshooting/download-logical-backups.mdx b/apps/docs/content/troubleshooting/download-logical-backups.mdx
new file mode 100644
index 00000000000..6a3f3cde126
--- /dev/null
+++ b/apps/docs/content/troubleshooting/download-logical-backups.mdx
@@ -0,0 +1,31 @@
+---
+title = "How to download logical backups in Supabase with physical backups enabled?"
+topics = [
+"database",
+]
+keywords = ["backups"]
+github_url = "https://github.com/orgs/supabase/discussions/33045"
+---
+
+If you're unable to download backups due to physical backups being enabled, you can use the PostgreSQL utility `pg_dumpall` as an alternative. This tool offers more flexibility and control for creating backups.
+
+You can use the command below to backup your database:
+`pg_dumpall -h your-db-host.supabase.co -U postgres > backup.sql`
+
+Or alternatively, you can create a backup of your Supabase database and store it in your repository by running the following script: https://github.com/mansueli/Supa-Backup
+
+To retrieve your database connection details from the dashboard:
+
+1. Go to your Dashboard.
+2. Select your Project.
+3. Navigate to: https://supabase.com/dashboard/project/_?showConnect=true.
+4. Or click the "Connect" icon in the dashboard.
+5. There, you’ll see the connection strings that we have available.
+
+<img
+ width="106"
+ alt="image"
+ src="https://github.com/user-attachments/assets/7cdf38f4-f7d4-4b33-bc8e-a5dceedd7c34"
+/>
+
+Additionally, please, refer to our documentation on [Database Backups](https://supabase.com/docs/guides/platform/backups).