Operating a system Supabase Self-Hosted gives you absolute control over data and costs. However, at some point, your current VPS may become overloaded, or you find another VPS provider with better performance at a bargain price. That's when you need to think about Migrate (Move) your system to a new home.
Many of you worry that this migration will be complicated, prone to data loss or damaging stable configurations. Especially when you already have a significant amount of user data (Users), Database, and Storage. Additionally, there's the concern about prolonged downtime (service interruption) during the transition.
Don't worry! This article will be the most detailed guide, instructing you step by step on how to migrate Supabase Docker from the old VPS to the new VPS in the safest way. In particular, we will use the method VPS-to-VPS transfer to ensure the fastest speed, and set up Nginx Proxy Manager to manage domains as well as secure your Dashboard (Studio).
Step 1: Understand Clearly the “Heart” of Supabase Self-Hosted
Before getting started, you need to understand the file structure of Supabase to know what to copy and what can be skipped. When you install Supabase with Docker, you can see in the folder /opt/supabase there are many subfolders like apps, packages, examples…

In fact: 99% the most important things are compactly contained in the folder docker. The remaining folders are mostly the source code of the Supabase project (Next.js apps, libraries…) that Docker Container does not use directly to run. Docker runs based on pre-built “Images” (for example) supabase/studio:latest, supabase/postgres:15, so copying the source code is unnecessary.
In the folder docker, we have 3 “immutable” components:
docker-compose.yml: This is the system design. It specifies which services will run (Database, Auth, Storage, Realtime…), which ports are open, and which volumes are mounted..env: This is where all your secrets are stored. Database password (POSTGRES_PASSWORD), JWT Secret (to generate tokens), API Keys (Anon Key, Service Role Key). Losing this file means losing control of the system.volumes/: The most important isvolumes/db/data. This is where the live PostgreSQL data is stored. If you only copy the config files and forget this folder, you'll have a brand new Supabase but... empty.
Step 2: Prepare the “New Home” (Target VPS)
You need to prepare a clean new VPS (Fresh Install). The recommended operating system is Ubuntu 20.04 LTS or 22.04 LTS to ensure stability and best compatibility with Docker.
First, SSH into the new VPS and update the system:
sudo apt update && sudo apt upgrade -y
Next, install Docker and Docker Compose plugin. The fastest and most standard way is to use Docker's official automatic installation script:
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
After installation, check if Docker is running:
sudo docker --version
sudo docker compose version
If you see the full version, you're ready to receive the data.
Step 3: Transfer Data (“Shoot” Data via Rsync)
Instead of the traditional method: Download 10GB of data to your personal computer (slow network) -> Upload 10GB to the new VPS (slow network), we will use Rsync to transfer data directly between 2 VPS. The speed will be extremely fast by utilizing datacenter bandwidth.

Why use Rsync instead of SCP?
- Resume: If you're copying 90% and the network drops, running the Rsync command again will continue from 90%. SCP will have to start over.
- Preserves attributes: Rsync preserves permissions and timestamps of files, which is very important for Database files.
- Data compression: Flag
-zhelps compress data during transfer, saving bandwidth.
Set a reasonable budget, focusing on cost-effectiveness.
1. On New VPS: Create the parent directory in advance to avoid copying the wrong path:
# Tạo thư mục /opt/supabase
mkdir -p /opt/supabase
2. On Old VPS: Run the Rsync command below. This command will prompt for the root password of the new VPS.
# Chạy lệnh này TỪ VPS CŨ
# IP_VPS_MOI: Thay bằng IP của server mới (VD: 116.118.x.x)
rsync -avzP /opt/supabase/docker/ root@IP_VPS_MOI:/opt/supabase/docker/
Note the trailing / in the source path is very important. If you write it wrong, the folder docker may be nested (for example docker/docker). The above command is the most standard.
Step 4: Launch Supabase in the New Home
After the Rsync progress bar completes (reaches 100%), congratulations, the entire soul of the old system has moved to the new home. Now wake it up.
On https://dps.media/wp-content/uploads/2026/02/cach-tich-hop-google-translate-vao-chatwoot-de-ho-tro-khach-hang-da-ngon-ngu-1771771710387_dpsmedia-356x132.png:
cd /opt/supabase/docker
# (Tùy chọn) Kiểm tra lại file .env xem có cần chỉnh sửa gì không
cat .env
# Khởi chạy các container
docker compose up -d
http://dps.media/en/use-chatgpt-to-replace-google-translate/
docker compose logs -f
Step 5: Configure Nginx Proxy Manager & SSL
http://dps.media/en/first-social-media-platform-dedicated-exclusively-to-ai-agent/https://api.your-domain.comhttp://dps.media/en/translationsmoltbot-top-1-personal-ai-assistant-tool-premium-2026/ Nginx Proxy Manager (NPM) http://dps.media/en/fashion-industry-report-2026-social-commerce-war-rise-of-local-brand-2/

http://dps.media/en/furniture-industry-report-2026-smart-home-wave-minimalism/ Proxy Hosts http://dps.media/en/cosmetics-industry-report-2026-koc-power-clean-beauty-era/
1. API Gateway (Most Important)
- Domain Names:
api.your-domain.comAbout Facebook Instagram Verified Badge ServiceFacebook InstagramIn the digital age, Facebook and Instagram verified badges are not only a symbol of credibility but also a “golden ticket” that helps businesses build their brand, earn trust, and expand business opportunities.DPS.MEDIA is proud to be a pioneer in […] - Forward Hostname / IP:
172.17.0.17 Effective Ways to Integrate Google Translate into Chatwoot - Forward Port:
8008How to integrate Google Translate into Chatwoot helps businesses remove language barriers. Optimize workflows... - Websockets Support: Converting articles into short videos helps increase retention rate by 80%....
- SSL Tab: 22 February, 2026
2. Studio Dashboard (Management Interface)
- Domain Names:
studio.your-domain.com - Forward Hostname / IP:
172.17.0.1 - Forward Port:
3003LINE is one of the most popular messaging apps, and integrating it with Chatwoot helps you manage customer messages centrally and efficiently. This article will guide you step by step to connect LINE Official Account with Chatwoot. Steps to Take Step 1: […] - Websockets Support: In any digital marketing campaign, a payment system and account information that are transparent and easy to control are always key factors in ensuring investment efficiency for businesses. With Vietcombank, a bank ranked among the top in Vietnam for trustworthiness and network […]
- SSL Tab: https://dps.media/en/payment-of-techcombank-qr-code-and-how-to-create-qr-code-for-bank-account/
https://dps.media/en/dps-medias-vietcombank-payment-system-and-account-information/ Amid increasingly fierce competition on TikTok, finding creative and effective content ideas has become a key factor that helps businesses stand out and boost engagement.TikTok Ads Creative Center is a powerful tool that supports advertisers […]Did you know that over 70% of small businesses in Vietnam grow their revenue thanks to effective use of Facebook Fan Pages? In the context of accelerating digitalization, creating and managing a Facebook Fan Page not only helps you reach target customers but also builds […]
Step 6: High-Level Security (Access Lists)
Hello! How can I assist you today?Optimizing Advertising Efficiency with Facebook Pixel on SME Business WebsitesConnecting Facebook Pixel: A Stepping Stone to Smart AdvertisingFacebook Pixel is an indispensable tool that helps SMEs measure, optimize, and expand advertising effectiveness on the platform […] https://dps.media/en/tiktok-ads-creative-center-content-idea-finding-tool/https://dps.media/tiktok-ads-creative-center-cong-cu-tim-y-tuong-noi-dung/ studio.your-domain.com https://dps.media/en/guide-to-creating-a-facebook-fanpage-for-beginners/
https://dps.media/huong-dan-tao-fanpage-facebook-cho-nguoi-moi-bat-dau/ Access Lists https://dps.media/cach-ket-noi-website-voi-facebook-pixel-de-dang/

Common errors when importing DNS into Cloudflare
- http://dps.media/en/how-to-integrate-google-translate-into-chatwoot/ Access ListsSun, 22 Feb 2026 14:48:38 +0000 Add Access List.
- http://dps.media/en/google-free-ai-certificate-for-smes/
Admin-Only. - http://dps.media/en/convert-posts-to-short-videos/ Authorizationhttp://dps.media/en/criteria-for-choosing-the-safest-functional-food-ads-agency/
- http://dps.media/en/safe-supplement-ads-agency/ Accesshttp://dps.media/en/aeo-and-geo-in-2026/ Action: Allowhttp://dps.media/en/ai-search-optimization-microsoft-guide/ Satisfy Any.
- Meaning: If it's the correct “home” IP, access directly without any questions.
- If it's an unfamiliar IP (like at a cafe), the system will show a popup asking for password.
- Save.
- Go back Proxy Hosts, edit the line
studio.your-domain.com. At the Details tab, in the Access Listwithout measurement, it is no different from throwing money into a void. Many businesses only care about whether the article has gone live or not, overlooking the most important step: evaluating performance after the campaign. Numbers do not lie, and they are the only measure of your success.Admin-Only.
Conclusion
Moving the server is not as scary as you think if we understand the nature of Docker and know how to use tools like Rsync. With the guide above, you will not only successfully migrate but also upgrade the security system for your Supabase.
https://dps.media/mua-group-facebook-gia-bao-nhieu-nhung-yeu-to-quyet-dinh-chi-phi/ docker) to prevent unexpected issues. Wish you success!
Ý kiến bạn đọc (9)
Đăng nhập để bình luận
Đăng nhập nhanh 1-chạm bằng Google để chia sẻ ý kiến của bạn về bài viết.
Bằng cách đăng nhập, bạn đồng ý với điều khoản và chính sách cộng đồng.
The VPS-to-VPS rsync section sounds quite reasonable, but if the database has users accessing it continuously, how should you handle this to avoid data mismatches during copying?
Exactly. Copying once and switching DNS immediately is only safe when traffic is low. We usually include a final backup step, limit data writes during cutover, and only then move to the new VPS.
If the system is running in production, I think you should have a rollback plan and check the database and Storage before fully opening traffic.
What I care about most is the security section on Studio. If Supabase is already behind Nginx Proxy Manager, how should we configure Access Lists so outsiders cannot reach the Dashboard?
In my view, Studio should limit IP access, while API Gateway must be kept separate because client applications still need to call the API. Do not accidentally block the API the way the Dashboard does.
Exactly my point. Exposing an admin dashboard publicly, like an API, carries considerable risk, especially when people assume a custom domain and SSL mean security is fully covered.
This article is useful because it points out that the docker folder is the part to pay attention to. Newcomers to Supabase Self-Hosted very easily copy a whole pile of source code and then waste time.
If the old VPS and new VPS have different disk capacities, can rsync handle it, or do we need to prepare roughly equivalent capacity?
I think the downtime section should specify the actual time required more clearly. A small system can be fast, but a production environment with a lot of storage and large databases surely cannot just switch DNS right after rsync finishes.
Chưa có bình luận nào. Hãy là người đầu tiên chia sẻ cảm nghĩ!
Đăng nhập / Tạo tài khoản
Đăng nhập với Google để gửi bình luận và tương tác cùng cộng đồng.
Tiếp tục là đồng ý với điều khoản sử dụng và chính sách bảo mật của DPS Media.