#backup and restore
4 messages · Page 1 of 1 (latest)
Hi @serene grotto. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Yes, this is possible in principle, but the docs only describe it indirectly, so there are a few caveats.
-
Backups/export format is compatible
Convex backups (downloaded from the dashboard or vianpx convex export) are ZIP snapshots of all tables and storage, and they can be imported into another deployment while preserving_idand_creationTimefields. [Backup restore; Import docs] -
Self‑hosted ↔ cloud migration is supported via export/import
The self‑hosting guide explicitly recommends usingnpx convex exportandnpx convex importto move data between self‑hosted and the cloud product. [Self-hosted guide] -
How you’d do it conceptually
- From your cloud production deployment:
- Download a backup from the dashboard, or run:
[Backup restore]npx convex export --path snapshot_prod.zip
- Download a backup from the dashboard, or run:
- On your self‑hosted dev backend:
- Import that snapshot:
(The self‑hosted README showsnpx convex import --replace-all snapshot_prod.zip--replace-allfor full snapshot restores.) [Self-hosted README]
- Import that snapshot:
- From your cloud production deployment:
-
Limitations / uncertainty
- The docs clearly say export/import works between self‑hosted and cloud, but they don’t spell out this exact “cloud prod → self‑hosted dev” direction step‑by‑step. [Self-hosted guide]
- Data import is a beta feature and may have issues for very old deployments. [Import warnings]