I’m trying to set up a local Supabase environment using Docker and migrate my online project’s schema, data, and files stored in Supabase Storage. While Supabase offers a service that allows connecting to a live instance, the only limitation is the number of projects I can create, for this reason, I aimed for something more flexible: a workflow where I set up the project online first and then port it to a local Docker environment.
What I have tried so far are the following steps:
- Linked my local project to the online Supabase project using
npx supabase link
. - Created a migration using
npx supabase db diff
and applied it locally withnpx supabase db reset
- Seeded the database using
npx supabase db dump --data-only
What is that I want:
- Storage Migration: I want to migrate the files (i.e., images) from Supabase Storage in the online project to my local environment. The db dump command only seems to handle database data, not storage.
Im running a Quasar project locally in WSL2 and I connect to a Supabase instance that runs through docker.
If anyone has experience with this or can point me to the right documentation, I’d really appreciate it! I’ll update this question with the full steps I followed once I figure things out.