Migrate a self-managed instance
Move an Odoo instance running in Docker Compose to the platform. Data, modules, and configuration carry over intact.
Before you start
- SSH access to the host machine running the instance
pg_dumpavailable on that host or inside the database container- A platform account on a dev or pro plan
- The Odoo major version of your instance (16, 17, 18, or 19)
1. Find the database name
Check your compose file for the database connection your Odoo container uses. The database name is whatever Odoo was initialized with.
If you are unsure, list databases directly:
psql -h localhost -p 5432 -U odoo -ldocker exec <db-container> psql -U odoo -lIgnore postgres, template0, and template1.
2. Export the database
Dump in custom format - this is what the platform restore uses natively and produces a smaller file than plain SQL.
pg_dump -h localhost -p 5432 -U odoo -Fc my_odoo_db > my_odoo_db.dumpdocker exec <db-container> pg_dump -U odoo -Fc my_odoo_db > my_odoo_db.dumpNote
Upload limit is 500 MB. For larger databases, trim data before exporting.
3. Create a new instance
- Click New Instance in the dashboard.
- Pick a subdomain - you can update the domain after migration.
- Select the exact same Odoo major version as your source instance.
- Wait for the instance to reach Running status.
Warning
Version mismatches (e.g. restoring a v17 dump into a v18 instance) will break the instance.
4. Upload the dump
- Open the instance, go to the Backups tab.
- Click Upload Backup and select
my_odoo_db.dump. - Wait for the upload - the file appears in the list with source
upload.
5. Restore
- Find the uploaded backup in the list.
- Click Restore and confirm.
- Status changes to Restoring, then back to Running when done.
Log in with your existing credentials - data, installed modules, and settings carry over.
Note
Restore replaces all data in the instance. On a freshly created instance there is nothing to lose.
6. Re-upload custom addons
The dump carries over module records, but the source files live on the old host. For each custom addon, open the Addons tab and install from ZIP or GitHub. Standard Odoo apps are already available and need no action.
7. Switch your domain (optional)
Open the Domains tab, add your domain, and update your DNS record to point at the platform server (see Custom domain DNS setup). TLS is handled automatically.
Troubleshooting
| Problem | Fix |
|---|---|
| Restore fails immediately | Instance must be Running before restore can start. |
| Modules error after restore | Custom addon files are missing. Re-upload via the Addons tab. |
| Stuck in Restoring | Check Logs tab. Common cause: PostgreSQL major version mismatch. Re-export with --no-acl --no-owner. |
| Upload rejected | File must end in .dump or .sql. Max 500 MB. |