Skip to content

Move an Odoo installed straight onto a server - a .deb package run under systemd, or a bare-metal source build - onto the platform. Unlike a Docker Compose source there is no volume to copy: the filestore lives in the odoo user's home and the service is managed by systemctl.

Before you start ​

  • SSH access to the source server, with sudo (the config and filestore are owned by root/odoo).
  • The database password - read it from db_password in odoo.conf (step 1).
  • A platform account on a dev or pro plan.
  • The Odoo major version and edition of your source (step 2 - this is the most common migration blocker).

Note

Two passwords are easy to confuse. admin_passwd in odoo.conf is the master password for the database manager - it is not the web login of the admin user. The login password lives hashed in res_users and carries over with the dump.

1. Inventory the install ​

Everything you need is in the running config. Note the addons_path (where custom modules live), data_dir (where the filestore lives - defaults to the odoo home when unset), and the database name.

Read config + list databases
bash
# Read the running config - note addons_path, data_dir, and the db_* values.
sudo grep -E 'addons_path|data_dir|db_host|db_user|db_password|dbfilter' /etc/odoo/odoo.conf

# List databases (ignore postgres / template0 / template1).
PGPASSWORD=<db_password> psql -h localhost -U <db_user> -l

2. Check the edition - Community vs Enterprise ​

Edition check
bash
sudo /usr/bin/odoo --version
# "Odoo Server 19.0+e-…"  -> Enterprise  (the +e matters - see the warning below)
# "Odoo Server 19.0"      -> Community

Warning

Enterprise sources need extra work. The platform provisions the Community Odoo image. If your database has Enterprise apps installed (e.g. account_reports, account_accountant, documents, web_studio), a plain restore will fail to load those modules. Either supply the Enterprise addons to the instance (ask your platform admin to mount them) before restoring, or uninstall the Enterprise apps on the source first. Restoring an Enterprise DB onto a Community instance without the addons leaves it stuck on boot.

3. Take a full backup - database AND filestore ​

A database dump alone is not a complete migration: attachments, product images, and report assets live in the filestore on disk. Export both.

3a. Database (custom format)
bash
# Custom format: smaller than plain SQL and restored natively by the platform.
PGPASSWORD=<db_password> pg_dump -h localhost -U <db_user> -Fc -d <db> -f <db>.dump
3b. Filestore
bash
# .deb / systemd installs keep the filestore under the odoo user's home when
# data_dir is unset (the default is ~/.local/share/Odoo). Archive its CONTENTS
# so the paths start with ./ - that is the layout the platform restore expects.
sudo tar czf filestore.tar.gz \
  -C /var/lib/odoo/.local/share/Odoo/filestore/<db> .

Note

Database upload limit is 500 MB. The filestore goes through the Filestore recovery flow (step 6) and has no such limit. For a very large DB, trim history before dumping.

4. Create a matching instance ​

  1. Click New Instance and pick a subdomain (you can attach your real domain later).
  2. Select the exact same Odoo major version as the source.
  3. Wait for Running status.

Warning

Restoring across major versions (e.g. a v17 dump into a v18 instance) breaks the instance. Match the version exactly.

5. Restore the database ​

  1. Open the instance → Backups tab → Upload Backup, select <db>.dump.
  2. Find it in the list (source upload) and click Restore.
  3. Status moves to Restoring, then back to Running.

Note

Restore replaces all data in the instance. On a freshly created instance there is nothing to lose.

6. Restore the filestore ​

Upload the filestore.tar.gz from step 3b using the Filestore recovery flow. Without this, records load but their attachments and images render as broken links.

7. Re-install custom addons ​

The dump carries the module records, but the Python/XML source files lived in addons_path on the old host. List them, then re-add each from the Addons tab (upload ZIP or install from GitHub).

List custom modules on the source
bash
# Each entry in addons_path may hold several custom modules.
sudo ls -1 /var/likit-odoo/addons
  • Install in dependency order - a module's depends must already be present.
  • ZIPs authored on Windows (paths with \ separators) are handled automatically; no need to repackage them.
  • Standard Odoo apps are already in the image and need no action.

8. Validate, then cut over ​

Test the platform copy thoroughly before pointing your domain at it - log in, open key records, check images, run a report. While you test, the source is still live; nothing has moved yet.

When you are satisfied, freeze the source so it cannot keep firing scheduled jobs, sending mail, or syncing to external systems behind your back, then switch DNS:

Freeze the old server at cutover
bash
# Freeze background work on the OLD server during the cutover window so it does
# not keep firing crons, sending mail, or calling external systems behind your back.
sudo systemctl stop odoo
  1. Stop the source service (above) so crons and outbound mail stop firing from the old box.
  2. On the platform, open the Domains tab, add your domain, and update DNS to point at the platform. TLS is issued automatically.
  3. Confirm the live site responds on your domain, then decommission the old server.

Warning

If you skip the freeze, both the old and new copy run their crons in parallel - duplicated outbound mail, double API calls to external systems (banks, e-invoice, ERP connectors), and divergent data. Always stop the source at cutover.

Troubleshooting ​

ProblemFix
Instance stuck after restoreUsually Enterprise modules with no source files. Supply the Enterprise addons or uninstall those apps on the source (step 2).
Attachments / images brokenFilestore was not restored. Complete step 6.
Custom module fails to installA dependency is missing. Install depends modules first (step 7).
Can't find the filestoredata_dir is unset, so it is under the odoo home: /var/lib/odoo/.local/share/Odoo/filestore/<db>.
Can't log in as admin after restoreThe web login is the res_users password, not admin_passwd. It carries over from the dump; if lost, an admin can reset it.
Stuck in RestoringCheck the Logs tab. Common cause: PostgreSQL major version mismatch. Re-export with --no-acl --no-owner.