When moving self-hosted Odoo to a new server is the right job
Moving self-hosted Odoo to a new server is the right job when an existing instance must run on new hardware, a new cloud account or a new data center, and the team wants the same database, files, customizations and users on the other side. It is a relocation, not a version change or a new implementation, so the goal is an identical system that works in the new place. The move has four parts: the PostgreSQL database, the filestore under data_dir, the Odoo source and addons paths, and the configuration and reverse proxy that sit in front of the server. Each one must be moved and checked on its own before the switch.
The edition, the Odoo version and the custom modules decide how strict the matching must be. Community and Enterprise installs use different code, and Enterprise databases are activated with a subscription code, so the subscription and its edition must be confirmed before anything is copied. The Odoo version and the Odoo source revision on the new server must match the old one, because a database restored onto different code will not start cleanly. Custom and third-party modules must exist at the same paths with the same versions. Confirm these facts in your own environment first, using the Odoo on-premise documentation as the reference for how your installation was made. If any of them is unclear, the move is not yet ready to plan.
Which relocation approach fits which situation
This table compares three ways to relocate self-hosted Odoo: a same-version rebuild, a move that includes a version upgrade, and an infrastructure-only change. Read each row for when the path fits, what it requires from your subscription, and the risk most likely to affect your cutover. The main takeaway is that an upgrade during the move needs an Enterprise subscription, because Community has no access to the upgrade service.
| Approach | When it fits | What it requires | Main risk |
|---|---|---|---|
| Same-version rebuild with dump and restore | The target server needs the same Odoo version, and you are changing hardware, cloud account or operating system only | Matching Odoo source revision, the same addons paths, a PostgreSQL dump and a copy of the filestore from data_dir | Filestore and addons not matching the database, so records load but attachments or custom code fail |
| Move, then upgrade with the Odoo upgrade service | You also need a newer supported version and your database is on a version the upgrade service accepts | Enterprise subscription for on-premise use, since Community has no access to the upgrade service; test the upgraded database before production | Custom modules that do not port to the new version, and an upgraded test database that needs full functional testing |
| Infrastructure-only change on the same version | Only the server, proxy, network or cloud provider changes and no code or data model changes are planned | Same source revision and addons, updated configuration and proxy settings, DNS and certificate changes at cutover | Configuration drift between old and new servers, such as worker limits, base URL or mail settings |
| Community edition, same version | You run Community with no Enterprise features and want to stay on the current version | Community source revision matched exactly, no upgrade service access, any version change must be planned and tested by your own team or a partner | Falling behind supported versions with no vendor upgrade path, so later moves become harder |
| Upgrade across several versions in one step | Your database is several major versions behind the version you need | Confirm with Odoo which intermediary upgrade steps the upgrade service supports before choosing a target | Long test cycles and modules that break at each intermediate version |
How the move runs from backup to cutover
The sequence builds an identical copy of the instance on the new server, proves it works with a neutralized test database, and only then moves live traffic, so the production write freeze stays short.
Inventory the source instance and addons
Record the Odoo version and exact source revision, the Python and PostgreSQL versions, the odoo.conf settings (including addons_path, data_dir, workers and proxy mode), every custom and third-party addon with its repository and commit, the Enterprise subscription status, and the outgoing mail and scheduled action setup. Your team and DeployOpen both review the list, and the inventory is done when every addon has a known source and a version that matches the running instance. Anything without a source becomes a blocker to resolve before the build starts.
Build the target at a matching source revision
On the new server or cloud, install the same Odoo source revision and the same PostgreSQL major version as the source, then place custom and third-party addons at the paths your new configuration will reference. For Enterprise, the source is obtained through your subscription or partner access. The step is complete when the bare install starts, reports the same version as the source, and the addons_path resolves every module the source uses, with no module-missing errors in the log.
Restore the PostgreSQL dump
Take a logical dump of the source database in a consistent state, transfer it to the new server, and restore it into a new database owned by the Odoo database user. Record the dump checksum and the row counts for key tables such as res_partner and account_move, so the restore can be compared with the source. The step is complete when the restore finishes without errors and the table counts match the source for the same point in time.
Copy the filestore from data_dir
Copy the database's folder under the source data_dir, which holds attachments, images and generated files, into the data_dir configured on the new server with ownership set for the Odoo service user. Attachments are stored outside the database, so a restore without this copy shows broken images and missing documents. The step is complete when a sample of attachments from the source opens correctly on the new server and the file count and total size match the source copy.
Adjust configuration and proxy
Update odoo.conf for the new host, including db settings, data_dir, addons_path, workers and the proxy mode setting, then place the reverse proxy in front of Odoo with the same forwarded headers and long-polling or websocket routes the source used. Confirm the server answers on the proxy's internal address before any public DNS change. The step is complete when the login page loads through the proxy with the correct hostname, the web assets load without errors, and the Odoo log shows no configuration warnings on startup.
Run a neutralized test copy by duplication
Use Odoo's database duplication function on the new server to create a test copy with neutralization, which disables outgoing mail servers, scheduled actions and payment provider connections so the copy cannot contact customers or post transactions. Test the copy with a named group of users. The step is complete when the duplicate starts cleanly, and the test team has signed off on the results of the checks in the next step.
Verify logins, reports, scheduled actions and mail
Using the test copy, confirm that each user group can sign in with the authentication method you use (password, LDAP, OAuth or two-factor), that key business reports and PDF documents render with the correct logos and fonts, that scheduled actions run when triggered manually and that outgoing mail is routed to a test server rather than live recipients. Record any failures against the inventory from step one. The step is complete when every check has a recorded pass, and each failure has an owner and a fix that is retested.
Freeze writes on the source and switch DNS
Announce the window, stop users from writing to the source, stop the source's scheduled actions and outgoing mail, then take a final dump and filestore sync and restore them to the new server. Run a short set of smoke tests on the live copy, then change the DNS record to the new proxy address and re-enable scheduled actions and mail on the new server only. The step is complete when users can sign in on the new address, a test transaction posts, and the source instance has been kept read-only as a rollback point.
How the database, filestore and proxy fit during cutover
The diagram starts on the source server, where the write freeze begins and the PostgreSQL dump and the data_dir filestore are taken together. Both move across the trust boundary to the target, where the same Odoo source revision and addons paths must be in place before restore. The reverse proxy is switched last, and a test copy restored from the same backup is checked before users return. Confirm that both halves of the backup come from the same moment.
Database, filestore and proxy flow from the source server to the target during cutover.
Security and operational risks during the move
A server move copies the most sensitive parts of an Odoo system: the database, the filestore, the configuration and the sign-in path. The cards below cover the controls that most often fail during a relocation, each with a check you can run before users return. Work through them in order, because the cutover depends on the old server being locked down as much as the new one is built.
Retire the old server's credentials
Until the old server is shut down, its database user, its odoo.conf file and any stored SMTP or API keys remain valid and can still reach live data. Revoke or rotate database passwords, outgoing mail credentials and integration tokens once the new server holds the production copy. Then stop the Odoo service and the PostgreSQL service on the old host and confirm that nothing still points at it. Check the firewall and DNS records as well as the service status.
Protect the master password in transit
The database manager is protected by a master password stored in the configuration file. Copy it to the new server only through an encrypted channel or a secrets store, never in a chat message, a ticket or a plain email. Generate a new master password on the new host rather than reusing the old one if your policy requires it. Verify that the value in the new configuration matches your secrets record and that it is not written into shell history or logs.
Secure backup transfers and storage
A PostgreSQL dump and a filestore archive contain customer records, password hashes and session data, so they are as sensitive as the live system. Encrypt archives before they leave the source host, transfer them over SSH or an equivalent channel, and set restrictive file permissions on both ends. Delete staging copies on any intermediate storage once the restore is verified, and confirm that backup retention on the old and new hosts follows your data policy.
Keep the database manager closed
The database manager lets anyone who knows the master password create, drop, duplicate or restore databases from the web. On the new host, keep it disabled or restrict it to an administrative network, and confirm that it is not reachable through the public proxy path. Test this from outside your network with an unauthenticated request. Re-enable it only for the specific operation that needs it, then close it again.
Align proxy headers and TLS settings
Odoo relies on the reverse proxy to set forwarding headers and to terminate HTTPS. If the proxy on the new server does not pass the original protocol and host, login redirects, generated links and session cookies can point to plain HTTP or to the wrong address. Confirm the proxy setting that tells Odoo it runs behind a proxy, check the certificate chain and HSTS behavior, and verify that session cookies are marked secure when served over HTTPS.
Review sessions and two-factor settings
Session records and two-factor enrollments are stored in the database, so a restored copy carries them forward, including sessions opened on the old server. Decide whether to invalidate all sessions after cutover and ask users to sign in again. Check that two-factor authentication is still enforced for administrators, that LDAP or other external sign-in settings point to the correct directory, and that no test accounts with known passwords were restored into production.
Odoo LDAP docsQuestions teams ask before moving Odoo to a new server
What drives the cost of moving self-hosted Odoo to a new server?
The cost follows the amount of verification the move needs, more than the copy itself. The main drivers are the number of custom and third-party addons that must load on the new server, whether the database is Enterprise and must be reactivated with its subscription code, the size of the filestore, and how much testing the business requires before users switch over. A quote should list each of these as a separate line: inventory of the current setup, rebuild of the environment, data transfer, addon and configuration work, testing, cutover and a short period of post-move checks. Ask whether the quote includes a rehearsal on a copy of the database, since that rehearsal is where most surprises appear. Costs are one-time for the move itself, while hosting, backups and any support retainer recur.
How long does the cutover window last?
The window depends mainly on how long it takes to dump the PostgreSQL database, copy the filestore and restore both on the target, plus the time to check that the database opens on the matching Odoo source revision. The filestore is often the larger and slower part, because it holds attachments and documents that can be far bigger than the database itself. Measure both on a test copy before setting a date: time the dump, the transfer of the filestore directory from data_dir, the restore, and a smoke test of key workflows. Users must stop writing to the old system for the final dump, so the window is the time between that stop and the first successful login on the new server. No duration can be given without measuring your own database and filestore.
What do we need to provide for the move?
The work needs a short list of access and decisions from your team before it starts. Expect to provide:
- Administrative access to the current server, the database and the target environment, including the cloud or data center account
- A recent full backup of the database and the filestore, and confirmation of where the data_dir path lives
- The Odoo source revision, custom and third-party addons, and the addons_path configuration
- For Enterprise databases, the subscription code, since on-premise Enterprise databases are activated by entering it
- A named business owner who signs off test results and the go-live decision
Also confirm who owns DNS, certificates and the reverse proxy, because these often decide the final switch.
Does the Odoo version need to change during the move?
It should not, at least for the first move. The safest path keeps the same Odoo major version and source revision on the target, so the database opens without changes. Odoo standard support runs for three years after each major release, and Odoo 17.0 standard support ended in September 2026, so a database on an unsupported version needs an upgrade plan on its own track. Odoo's upgrade service moves a database to a newer version through an upgraded test database that should be tested before production, and on-premise use requires an Enterprise subscription. Do not combine a server move with a version jump unless the upgrade is planned and tested separately.
Can our own team move Odoo to a new server?
Yes, if your team has Linux, PostgreSQL and reverse proxy skills and enough time to rehearse. The core steps are documented: match the Odoo source revision and addons paths, dump and restore PostgreSQL, copy the filestore, adjust the configuration file, and set up the proxy. Teams usually struggle with three things: custom addons that depend on a specific Python environment, Enterprise activation, and the cutover itself, where a failed restore or missed filestore file breaks documents and attachments. A partner is most useful when the environment has many addons, regulated data or a hard deadline. Whichever route you pick, run at least one full rehearsal on a copy and use a sign-off checklist before switching users.
How do we test the new server before users switch over?
Test with a copy of the production database and filestore on the new server, not with empty data. Odoo's on-premise documentation describes database duplication with neutralization for test copies, which disables outgoing email and scheduled actions so the copy cannot send messages or trigger live jobs. Then check login, the apps your business uses daily, attachments and reports, scheduled actions that the new environment should run, and integrations that call Odoo. Confirm that the reverse proxy, HTTPS, mail and backups behave as expected. Record the results and the time each step took, since those numbers set the cutover window for the real move.
What security checks should we make on the new server?
Treat the new server as a new attack surface, even if the data is the same. Confirm that the database manager is disabled or protected, that the master password is set and stored securely, that only the reverse proxy can reach the Odoo ports, and that the PostgreSQL port is not exposed beyond the application network. Check that the restored database keeps its user groups, record rules and two-factor settings, and that sign-in through LDAP, Google, Microsoft Azure or other providers is re-tested against the new hostname. Old backups and copies of the production database should be stored under the same access controls as the source, and test copies should be neutralized before anyone uses them.
What happens if the move fails during cutover?
Keep the old server running and untouched until the new one has passed sign-off. Before the final dump, record the rollback point, which is the last backup and the time users stopped writing. If the restore or checks fail, point DNS or the proxy back to the old server and reopen access, then investigate on a copy. Write this rollback procedure down and rehearse it, because a move that cannot be reversed quickly turns a short window into an extended outage. Ask any partner to show their rollback steps as part of the written scope.
Deciding between an in-house move and a partner
An internal team can usually handle the move when the database is a standard Odoo install, the addons are either Community modules or Enterprise apps already activated on the target, the server version stays the same, and there is a cutover window the team can test end to end. The deciding question is whether the team has done a full restore rehearsal on a copy of production, including the filestore, the addons_path and the data_dir ownership, and checked that the new instance starts and serves the same modules. If that rehearsal has not been done, a partner is less a cost than a way to avoid learning on the production cutover night.
A partner earns its place when one of four conditions applies. Custom modules have no version control or do not match the source revision in use, so someone must reconcile them before anything starts. Enterprise activation needs the subscription code entered on the new host, which ties the move to the account owner's access. The cutover window is tight enough that a failed restore must be rolled back within minutes. Or the move is combined with a version change, in which case the upgrade path through Odoo's upgrade service and a tested upgraded database has to be planned before the build starts, since the Odoo upgrade documentation makes that step its own project.
A fixed-scope written agreement should name the source and target environments, the Odoo version and edition on each side, the list of custom modules and their repository location, the backup and restore method, the cutover steps with a rollback point, the testing that signs off each stage, and who owns DNS, reverse proxy and subscription changes. It should also state what happens if a test restore fails and what is excluded, such as third-party connectors or data cleanup. Ask for a quote that separates one-time migration work from any retainer for later upgrades or support, and confirm in writing who holds the subscription and the database credentials at handover.
How DeployOpen scopes and supports Odoo server moves
DeployOpen plans and carries out Odoo server moves inside your own infrastructure, starting with a written scope that names the database, filestore, Odoo revision, addons paths and proxy configuration. The work is tested on a copy of production before any cutover window is agreed, so the switch itself stays short and predictable.
How we scope
- Written scope lists the source and target hosts, database size, filestore size and each custom or third-party addons path.
- Scope confirms the exact Odoo source revision on both servers and which Community or Enterprise edition is running.
- Engagements are fixed-scope, with deliverables and the cutover plan agreed in writing before work starts.
How we build
- Build rehearses the PostgreSQL dump and restore and the filestore copy on a test target before production is touched.
- Configuration work covers the Odoo config file, the reverse proxy, TLS certificates, outgoing mail and DNS records.
- Each rehearsal is checked with logins, record counts, attachments, scheduled actions and key reports.
How we hand over
- Handover includes a runbook with the exact cutover steps, rollback points and the owner for each step.
- Documentation records the final versions, paths, backup locations and the checks that confirmed a successful move.
- Your team receives a retest of the new server after the first full working day under production load.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the move is complete.
- Support can cover backup verification, Odoo update planning and the standard support windows that apply to your version.
- Ask whether the retainer includes the next major version test, since Odoo's upgrade path requires a tested upgraded copy.

