最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

docker - How to Migrate Supabase Online Project Data (Including Storage) to Local Environment? - Stack Overflow

programmeradmin2浏览0评论

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:

  1. Linked my local project to the online Supabase project using npx supabase link.
  2. Created a migration using npx supabase db diff and applied it locally with npx supabase db reset
  3. Seeded the database using npx supabase db dump --data-only

What is that I want:

  1. 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.

发布评论

评论列表(0)

  1. 暂无评论