Skip to content

Local databases and files

Tested with: zb migrate 0.1 · pg_dump 17 · mysqldump 8.4 · valkey-cli 8.1 · mongodump 100.10 · sqlite3 3.46 · duckdb 1.3

--from local runs the engine’s own dump tool on your machine and streams it to a pre-signed upload URL; a file path uploads the file as-is. Nothing needs to be reachable from the internet.

shell
# Local server (uses PG* env vars or --host/--port/--user)
zb migrate --from local --engine postgres --db myapp --create
# Existing dump (custom or plain format, optionally gzipped)
pg_dump -Fc myapp > myapp.dump
zb migrate --from ./myapp.dump --engine postgres --create
zb migrate --from ./myapp.sql.gz --engine postgres --to inst_abc

Uploads are S3 multipart with resume: an interrupted zb migrate continues where it stopped. Files up to the target size’s storage ceiling are accepted; --create picks a size whose ceiling fits the file with 30% headroom.