#Dump db
4 messages · Page 1 of 1 (latest)
Hi @zenith verge. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
You can copy your entire Convex dev database into prod using backups/exports plus npx convex import.
1. From the dashboard (simplest)
- Go to your dev deployment → Settings → Backup & Restore.
- Click “Backup now” (or download an existing backup). This gives you a ZIP snapshot of all tables (and optionally file storage). [Backup & restore]
- Switch to your prod deployment → Settings → Backup & Restore.
- Use Restore and select that backup. This wipes existing prod data and replaces it with the backup. [Backup restore]
IDs and _creationTime are preserved, and storage file IDs are kept if included. [Backup download; Storage IDs]
2. From the CLI (same format as backups)
On your dev project:
# Export full dev deployment to a ZIP
npx convex export --path ./dev_snapshot.zip
This ZIP has all tables and (optionally) storage, same as a dashboard backup. [Data export; Backup format]
Then, to import into prod:
npx convex import --prod --replace dev_snapshot.zip
--prodtargets the production deployment.--replaceoverwrites data in tables present in the ZIP. [Data import]
This preserves document IDs and references. [Import ZIP]
If you only need some tables (not the whole DB), you can instead export/import per-table CSV/JSON/JSONL with:
npx convex import --table <tableName> <path> # dev or prod with --prod