Migrating from Zeabur

zeabur project export

stackblaze import

stackblaze domain add

TutorialsMigrationTutorialZeabur

Migrating from Zeabur to StackBlaze

Zeabur stops running on December 31, 2026. How to move your services, variables, databases, files and domains, step by step or with a coding agent.

Adam Kamali

CEO

December 2, 202614 min read

Zeabur is shutting down, and every service on it stops on December 31, 2026. This guide moves a Zeabur project to StackBlaze: your services, their variables, their databases and files, and your domains.

StackBlaze is a hosted platform, so there is no server to rent and no Kubernetes to run. You deploy from the same Git repository or Docker image you use today. Plan for an hour or two per project, most of it waiting for data to copy.

Dates to plan around

These come from Zeabur's own shutdown notice.

DateWhat happens on Zeabur
From December 1, 2026Services on shared clusters are suspended. You can resume one by hand to back up its data. Dedicated servers stop renewing and shut down on their own expiry dates.
December 31, 2026All shared clusters and dedicated servers stop.

Zeabur has not said when data is deleted. Two things stop working at shutdown that are easy to miss:

  • Zeabur's image registry. Services built from Git run an image stored in Zeabur's registry. You cannot pull it afterwards, so rebuild from your repository on StackBlaze instead of copying the image.
  • Addresses ending in .zeabur.app. They stop resolving. Find every place one is hard-coded: OAuth callbacks, webhooks, payment provider settings and your own code.

Already suspended?

Resume your services, export the data (step 2), and do the rest afterwards.

How Zeabur maps to StackBlaze

On ZeaburOn StackBlaze
ProjectProject
EnvironmentEnvironment. Every project starts with production
Service built from Git (zbpack)App built from the same repository, with Railpack or your Dockerfile
Service from a prebuilt imageApp from the same image
Template serviceThe matching template from the StackBlaze catalog, or the same image
PostgreSQL servicePostgreSQL database (version 17 by default)
MySQL or MariaDB serviceMariaDB database, which is MySQL-compatible
Redis serviceValkey database, which is Redis-compatible
MongoDB serviceComing soon
Variables, including ones exposed by other servicesApp variables. Reference another app's variable with ${{app.VAR}}
<service>.zeabur.internal${{app.STACKBLAZE_PRIVATE_DOMAIN}}
VolumeVolume on the app
A .zeabur.app domainA generated .stackblaze.app address
Custom domainCustom domain, verified with a TXT record and pointed with a CNAME
Daily backupBackups you turn on for the environment. They are not on by default
Team membersOrganization members you invite

Before you start

  • The Zeabur CLI, signed in to the account that owns the services. It runs without installing.
  • A StackBlaze account and the StackBlaze CLI.
  • Access to the Git repositories your services are built from.
  • For custom domains, access to their DNS records.
# Zeabur CLI: check you are signed in (run "auth login" if not)
npx zeabur@latest auth status

# StackBlaze CLI
curl -fsSL https://stackblaze.com/install.sh | sh    # macOS and Linux
brew install stackblaze/tap/stackblaze               # or Homebrew
irm https://stackblaze.com/install.ps1 | iex         # Windows PowerShell
stackblaze login

Everything in this guide can also be done in the StackBlaze dashboard. The CLI commands are shown because they are exact.

Let a coding agent do it

If you use Claude Code, Codex or Cursor, the agent can do the inventory, the export and the move while you approve each step. Install the StackBlaze skills and MCP server first:

stackblaze setup agent -y

Then give the agent this:

prompt.txt
Read https://zeabur.com/blogs/migrate-from-zeabur.md to learn how my services run on Zeabur
and how to export them. Then move them to StackBlaze with the stackblaze CLI.
Rules: never print secrets or connection strings; keep exports in files with mode 600;
do not change or delete anything on Zeabur without asking me; ask before creating anything
that costs money, before the cutover, and before deleting anything. I change DNS myself.

The steps below are what the agent follows. You can follow them yourself.

Step 1: Take stock of what runs on Zeabur

List your projects and note each project ID: the 24 characters after project- in the dashboard URL. Then run these for each project and each of its services.

npx zeabur@latest --json project list
npx zeabur@latest project export --id <projectID>          # services, ports, volumes, config files
npx zeabur@latest service list --project-id <projectID>
npx zeabur@latest --json service get --id <serviceID>      # repository, branch, root directory, custom commands
npx zeabur@latest --json variable list --id <serviceID>    # its own variables and the ones it receives
npx zeabur@latest domain list --id <serviceID>

These outputs contain secrets

Save the output of project export and variable list to files only you can read (chmod 600), not into a repository.

Write one row per service:

  • Source: a repository and branch, an image and tag, a template, or a database engine and its major version.
  • Port the service listens on. Zeabur's Git services listen on 8080 unless a different port was detected.
  • Variables, including the ones received from other services. In variable list those are under readonlyVariables. Apps often read their database address from there (POSTGRES_CONNECTION_STRING, REDIS_URI), so they do not appear in the app's own list.
  • Volumes: the mount path and how much data is in each.
  • Domains: generated and custom.

Two details about variables. Values are exported unexpanded, so a value such as ${PASSWORD} is a reference, not the password. And the variables Zeabur sets for you do not exist on StackBlaze: ZEABUR_*, <SERVICE>_HOST, <PORT>_PORT, ZEABUR_WEB_URL and similar. Search your code for the ones it reads and plan a replacement for each in step 5.

Step 2: Export your data

Do this first if your services are suspended or close to expiry. Dump each database with the official tool of the same major version as the database.

EngineTool
PostgreSQLpg_dump, one database at a time. Prefer the custom format: pg_dump -Fc
MySQL, MariaDBmysqldump or mariadb-dump, with --single-transaction
MongoDBmongodump --archive --gzip
RedisNothing, if you only use it as a cache. Otherwise redis-cli --rdb

Prefer pg_dump over pg_dumpall. A pg_dumpall file carries the old roles and password hashes, which clash with the ones a new database creates.

Zeabur has no file download command, so stream a dump out of the service through service exec:

export-postgres.sh
timeout 300 npx zeabur@latest service exec --id <serviceID> -i=false -- \
  sh -c 'pg_dump -h 127.0.0.1 -U "$POSTGRES_USER" -Fc "$POSTGRES_DB" | base64' \
  | grep -v -E '^(INFO|ERROR)' | base64 -d > app.dump
  • Connect to 127.0.0.1, not localhost, inside a Zeabur container.
  • service exec returns at most 3 MB. For a larger database, write the dump to a file inside the service and read it out in pieces, or download a backup from the Zeabur dashboard.
  • service exec sometimes answers 504 Gateway Timeout. Run it again.

Archive each volume mount path the same way, then check that the archive opens:

export-volume.sh
timeout 300 npx zeabur@latest service exec --id <serviceID> -i=false -- \
  sh -c 'tar czf - -C / <mount path> | base64' \
  | grep -v -E '^(INFO|ERROR)' | base64 -d > files.tgz
tar tzf files.tgz > /dev/null

SQLite

Do not copy a database file the app has open. Export it with sqlite3 app.db .dump > app.sql and restore it with sqlite3 new.db < app.sql.

Keep the exports somewhere durable until you have checked the restored data. Record the row count of your main tables now, so you can compare after the import.

Step 3: Create the project and its apps

Create a project. To choose where it runs, list the regions first.

stackblaze regions list
stackblaze projects create shop

A service built from Git

Run this in a checkout of the repository. StackBlaze builds it and prints the address of the app when it is running.

stackblaze up --name api -p shop --port 8080 --wait
  • If the repository has a Dockerfile, it is used. Otherwise the app is built with Railpack, which detects the language as zbpack does.
  • Set --port to the port your app listens on.
  • If you set custom install, build or start commands in zbpack.json or ZBPACK_* variables, the most reliable way to carry them over is a Dockerfile that runs the same commands.
  • A background worker has no port and no address: add --worker.

A service from an image

Use the same image, and pin the tag you run today instead of latest.

stackblaze up --image ghcr.io/acme/web:1.4.2 --name web -p shop --port 3000 --wait

Several services at once

If you have a docker-compose.yml that describes the project, StackBlaze can create every service and database in it. Check what it would create first. Anything the importer cannot carry over is printed as a warning.

stackblaze import docker-compose.yml -p shop --dry-run
stackblaze import docker-compose.yml -p shop

A template

If the service came from a Zeabur template, look for the same application in the StackBlaze template catalog before rebuilding it by hand.

stackblaze templates search n8n
stackblaze templates deploy --help

Step 4: Create the databases and load your data

StackBlaze offers PostgreSQL, MariaDB and Valkey today. Add a database to the app that uses it; attaching it gives the app its connection variables.

stackblaze addons list
stackblaze addons add <kind> -p shop -a api

PostgreSQL

New databases run PostgreSQL 17, and a dump from an older version restores into it. The import runs inside the platform, from a local file or an https:// URL. It accepts plain SQL and pg_dump -Fc archives.

stackblaze addons import app.dump -p shop -a api --wait

MySQL and MariaDB

Both move to MariaDB 11.4, which speaks the MySQL protocol, so your drivers and connection strings keep working. The import runs the client on your machine through a private tunnel, so you need mysql installed.

stackblaze addons import app.sql -p shop -a api --local

Coming from MySQL 8

A MySQL 8 dump can use features MariaDB does not have. Run the import well before your cutover and read its output for errors.

Redis

Use Valkey, which is Redis-compatible. If Redis was only a cache, start empty.

MongoDB

Managed MongoDB is coming soon on StackBlaze. If your project depends on MongoDB, email support@stackblaze.com before you plan the move.

After an import, open a database shell and compare row counts with the ones you recorded.

stackblaze connect -p shop -a api

Step 5: Set the variables

Put each app's variables in a .env file and import it. This is one release.

stackblaze variables import api.env -p shop -a api

Before you import, change three kinds of values:

  • References to other services. Zeabur's ${VAR} and <SERVICE>_HOST do not exist here. Reference another app in the same environment with ${{app.VAR}}. STACKBLAZE_PUBLIC_URL, STACKBLAZE_PUBLIC_DOMAIN and STACKBLAZE_PRIVATE_DOMAIN exist for every app.
  • Addresses ending in .zeabur.internal. Replace each with ${{<app>.STACKBLAZE_PRIVATE_DOMAIN}}.
  • Database connection values. Do not copy the old ones. Use the variables the database gave the app in step 4. If your code reads a different name, such as POSTGRES_CONNECTION_STRING, add that name and point it at the value the database provides.
api.env
API_URL=${{api.STACKBLAZE_PUBLIC_URL}}
WORKER_TARGET=http://${{api.STACKBLAZE_PRIVATE_DOMAIN}}:8080

Then check that every variable your code reads has a value.

stackblaze variables list -p shop -a api

Step 6: Restore files to volumes

Add a volume to the app, then upload the archive from step 2 and extract it at the mount path. Use the mount path your app expects, and a size with room above what you exported. The trailing slash on --path means: extract into this directory.

stackblaze volume add data --mount /data --size 5Gi -p shop -a api
stackblaze files mounts -p shop -a api
stackblaze files upload files.tgz --path /data/ --extract -p shop -a api

Step 7: Test before you switch

Open each app at its .stackblaze.app address and go through the things that matter: sign in, write something, read it back, run a background job. Do not move on until the apps work with the imported data.

stackblaze logs -p shop -a api
stackblaze diagnose -p shop -a api

Step 8: Cut over

  1. A day ahead, write down your domain's current DNS records and lower their TTL to 300 seconds.
  2. Add the custom domain to the app. StackBlaze prints a TXT record and a CNAME. Create the TXT record now: it proves you own the domain and does not affect traffic.
  3. Stop writes on Zeabur: suspend the application services and leave the databases running.
  4. Copy the data one last time. Repeat the dump and import from steps 2 and 4, and compare row counts.
  5. Point the domain: change the CNAME to the value StackBlaze printed, then verify it. The domain is ready when the list shows its certificate as issued.
  6. Test the live site, including sign-in, payments and anything a third party calls back to.
  7. Update every hard-coded .zeabur.app address in OAuth apps, webhooks and payment settings.
cutover.sh
stackblaze domain add www.example.com -p shop -a web       # prints the TXT and CNAME records
npx zeabur@latest service suspend --id <serviceID>          # application services only
# ...final dump and import, then change the CNAME...
stackblaze domain verify www.example.com -p shop -a web
stackblaze domain list -p shop -a web

To go back

Restore the DNS records you wrote down and resume the services on Zeabur with npx zeabur@latest service restart --id <serviceID>. Anything written to StackBlaze after the cutover is not on Zeabur. Going back only works until your Zeabur services expire.

Step 9: Finish

  • Turn on backups. StackBlaze does not back up an environment until you set it up: stackblaze backups --help.
  • Invite your team: stackblaze members --help.
  • Scheduled work. If a Zeabur service ran on a schedule, recreate it as a scheduled task on the app.
  • Domains bought through Zeabur must be transferred to another registrar from the Zeabur dashboard. Start early; transfers take days.
  • Disconnect Zeabur from GitHub. Zeabur stays connected to your repositories until you disconnect it or delete the project.
  • Delete the Zeabur services only when you are sure the new setup is stable. After that there is no way back.

What does not carry over

  • Images built by Zeabur. They live in Zeabur's registry. Rebuild from your repository.
  • Zeabur's static site server. Zeabur serves static sites with its own build of Caddy. On StackBlaze, serve a static site from a small Dockerfile, for example with the standard caddy or nginx image.
  • Services you deployed by upload and no longer have the source for. Export the built files from the running container while it still runs, then deploy that folder with stackblaze up --local.
  • Zeabur's automatic variables: ZEABUR_* and the per-service host and port variables. Replace them as described in step 5.
  • Suspend-on-crash. Zeabur suspends a service after it crashes three times. StackBlaze keeps restarting it and reports the app as failed.

Get help

Email support@stackblaze.com with the name of your Zeabur project and what you are moving. If your Zeabur expiry date is close, say so in the subject line.

Adam Kamali

CEO at StackBlaze

CEO of StackBlaze. Writes about the product, pricing, and why we build the platform this way.

More from the blog