How to Migrate an On-Premises Odoo Enterprise Database

Ensuring a Smooth Odoo Database Migration

Migrating an on-premises Odoo Enterprise database to a new version requires careful execution. Whichever version you are migrating from, this guide will walk you through the essential steps to ensure a seamless transition. By following this structured approach, you can minimise downtime, avoid data loss, and ensure your system runs smoothly after the upgrade.

Steps to Migrate On-Premises Odoo Database

The migration involves the following key steps:

1. Pre-Migration Preparation

Before starting the migration process, it’s crucial to prepare thoroughly. This phase ensures that your system is ready for the upgrade and reduces the risk of unexpected issues.

Evaluate the Upgrade Feasibility
  • Check the Odoo Enterprise version compatibility (e.g., migrating from Odoo 15 to Odoo 18).
  • Identify custom modules and assess their compatibility with the new version. Ensure that required modules are migrated accordingly.
Backup the Existing Database

Taking a full backup of your database is non-negotiable. This step ensures that you have a fallback option in case anything goes wrong during the migration.

Use the following command to back up your database:

pg_dump -U odoo -h localhost -d your_database -F c -f your_database.backup

Also, take a backup of custom add-ons and configuration files:

tar -czvf odoo_custom_addons_backup.tar.gz /path/to/custom/addons/
cp /etc/odoo/odoo.conf /backup/location/
Set Up a Test Environment

Creating a test environment allows you to simulate the migration process without affecting your live system.

  • Create a separate staging server for testing the migration.
  • Install & setup the target Odoo version (e.g. Odoo18) on this test server.

2. Migration Process

Once the preparation is complete, you can proceed with the actual migration. This phase involves upgrading the database and ensuring everything works as expected.

Use Odoo’s Migration Service

Take a backup of the current database and upload it to the Odoo migration portal/page for database migration.

Odoo Upgrade Portal/Page: https://upgrade.odoo.com/

Download and Restore the Database

Using the Odoo migration service, Odoo will provide the migrated database, download it and restore it on your server.

Review and Adjust the Migrated Database

Thoroughly review the migrated database and make necessary adjustments if any issues are found. If there are database-related problems, contact Odoo. Otherwise, proceed with upgrading the database.

3. Post-Migration Checks

After the migration, it’s essential to validate the integrity of your data and ensure that all functionalities are working as expected.

Validate Data Integrity
  • Verify records (Sales Orders, Invoices, Inventory, etc.).
  • Check financial reports for any inconsistencies.
Test Custom Modules

Retest all custom modules and their workflows to ensure they function correctly in the new version.

Verify User Access & Performance
  • Ensure all users can log in and access necessary functionalities.
  • Test system performance and optimise if required.

4. Go Live

Once you’ve confirmed that everything is working correctly in the test environment, it’s time to migrate the production database.

Plan for Downtime
  • Schedule a downtime window for the final migration to minimise disruption.
  • Notify users about the transition in advance.
Migrate the Production Database

Repeat the steps for migration of the database on the production server.

Final Thoughts

Migrating an on-premises Odoo Enterprise database to a new version can seem daunting, but with proper execution, it can be a smooth process. By following this step-by-step guide, you can ensure a successful upgrade, minimise risks, and keep your business operations running smoothly.

Get Expert Assistance with Odoo Migration


Ensure a smooth transition with Numla’s expert Odoo services.

Contact Us Today

Dharmesh Patel 11 February, 2025
Archive
Sign in to leave a comment
How to Search Sales Orders for Archived Partner Records in Odoo