Self-Hosting Odoo in Dubai: Data Residency, Server Sizing, PostgreSQL Tuning and a Recoverable Backup Plan


The media in this post is not displayed to visitors. To view it, please log in.

A UAE company that wants Odoo on its own server usually has a clear reason: a contract that asks where the database will live, a policy that the company holds the keys, or other systems already running in a Dubai data centre. Those reasons are valid. Treating a virtual machine as a finished host is not. A self-hosted system is only safe when four things are written down and tested: where the data resides, how large the box needs to be, how PostgreSQL is tuned, and how you restore after a failure.

This guide covers those four decisions for a Dubai or wider UAE business. The choice between Odoo Online, Odoo.sh and your own server belongs in the first workshop and is set out on oxedge.com/odoo-erp-dubai/odoo-hosting. Once you have chosen your own server, the work below is what keeps invoices, inventory and payroll recoverable.

Planning the cost and the host of an Odoo system for a UAE company

What "self-hosted" actually commits you to

Odoo Online includes hosting in the subscription and cannot run custom modules. Odoo.sh is Odoo's platform for custom code, with staging, backups and monitoring, billed on top of the subscription. Your own server also needs the Custom plan if you will run Studio, multi-company, the external API or custom modules. The Custom plan is USD 32 per user a month (about AED 118). Odoo Standard is USD 16.90 on yearly billing (about AED 62), or USD 13.50 for the first 12 months. Those figures exclude 5% VAT and were checked on odoo.com on 20 October 2026. Licence cost is only part of the picture; Odoo ERP pricing in the UAE puts licence, Success Pack and a three-year budget in one place.

On your own server the licence is the smaller obligation. You, or a named operator, must patch the operating system, renew the TLS certificate, watch filestore disk space, run PostgreSQL backups, and keep a staging copy that is not the live company. If nobody will do that work, a self-hosted box is the wrong answer, even if a virtual machine is already paid for. Insist, in writing, that the subscription, the server account, the domain, the certificate, the backup store and the Git repository for any custom modules all sit in your company's name, with at least two people on your side who can log in. OXEDGE treats that ownership rule as part of hosting, not an afterthought.

Data residency for a UAE company

"The server is in the cloud" is not an answer a customer or an auditor can use. You need a city, a provider and a written note of what is replicated where.

What to write down before you rent a box

  • [
]The country and, if possible, the city of the primary data centre. A nearby region is not the same as "in the UAE".[]Whether the database, the filestore (attachments, scanned invoices, delivery notes) and the backups live in the same country. A nightly copy that silently lands elsewhere can undo the residency decision.[]Who can reach the server: a VPN or jump host, or a public HTTPS port firewalled to your office and the implementer.[]Which personal data the system holds — employee records, customer contacts, delivery addresses and, if payroll is in scope, WPS-related information.Whether a customer contract, a bank or a sector regulator has already named a required country. If they have, the host must match it before go-live, not after the first live invoice.

UAE federal data protection rules, and any extra terms in a free-zone or sector contract, are legal questions. This article is operational guidance, not legal advice. Ask the question early, write the answer into the scoping notes, and refuse a "we will move it later" plan. Moving a live Odoo database and its filestore is a project of its own. A primary server in Dubai with an unmanaged backup bucket in another country is not a UAE-only system, and the same applies if a support vendor takes a full copy onto a laptop. Write those rules into the handover, and if residency is why you rejected Odoo Online or Odoo.sh, check the actual region of those platforms, then keep the backups inside the same rule.

Server sizing that holds up after go-live

Odoo is a PostgreSQL application with a filestore on disk and worker processes in front. Undersizing shows up as slow invoice searches, stuck stock moves, or a week-end close that overruns. Oversizing is cheaper than discovering in month two that the box cannot take payroll and stock together.

A starting point, not a promise

Exact sizing depends on the apps you turn on, concurrent users, and whether heavy reports or website traffic share the machine. As a starting point for a UAE SME, not a data-centre design:

  • [
]Up to about 15 daily users, standard apps, few attachments: 4 vCPU, 8 GB RAM, fast SSD, 100 GB or more for the filestore, with PostgreSQL on the same box to begin.[]15 to 40 users, inventory plus accounting, regular attachments: 8 vCPU, 16 to 32 GB RAM, SSD with headroom, and a serious look at putting PostgreSQL on its own box or at least a dedicated disk.Above that, or if the website, e-commerce or heavy custom modules share the system: split the web workers from the database, and plan monitoring before go-live.

Split the disk between the operating system, the PostgreSQL data directory and the Odoo filestore; attachments from delivery notes and invoice PDFs fill a small disk quietly.

Workers, RAM and what not to share

Odoo workers hold memory. Size the worker count from the CPU, then check on staging that a normal morning of quotations, receipts and invoices still leaves free RAM for PostgreSQL. Do not run a second heavy application on the same 8 GB machine; month-end reports need headroom at the moment a finance team can least wait. A staging server should be a recent copy of production, not a tiny box that cannot run the same report. The implementation sequence on oxedge.com/odoo-erp-dubai/odoo-implementation-process still applies: scope, then build and test, then a cut-over, usually at a month start.

Comparing ERP options before you commit to a self-hosted Odoo server

PostgreSQL tuning that matters in practice

Default PostgreSQL settings will run a small Odoo database, but they will not stay comfortable once inventory moves, invoice lines and attachments have a year of history. You need a short written configuration and a way to see when it is wrong.

Memory and checkpoints

  • [
]shared_buffers is often set around a quarter of the machine's RAM when PostgreSQL shares the box with Odoo, and higher on a dedicated database host, so frequent invoice and stock lookups come from memory.[]effective_cache_size should reflect the RAM the operating system can use for file cache. A leftover default on a 32 GB server is a common miss.[]work_mem is per operation, not per server. Set it too high and a handful of month-end reports can exhaust RAM; set it too low and sorts spill to disk. Change it in small steps and watch the logs.[]maintenance_work_mem helps vacuum, index builds and restores, and can be higher than work_mem because those jobs are fewer.Checkpoint and WAL settings decide how often PostgreSQL flushes to disk. Poor defaults show up as periodic stalls on a busy morning, not as a constant slowdown.

Connections, vacuum and a pooler

Odoo opens a database connection per worker, and sometimes more for cron. max_connections should cover workers, admin and a backup job. When the worker count grows, put PgBouncer or an equivalent pooler in front rather than raising max_connections without a plan. Autovacuum must stay on: stock and invoice tables will bloat if it cannot keep up. Watch those tables, and the slowest queries with pg_stat_statements, every week rather than once at install. After a large import, or a migration from Tally, Sage, Zoho or Excel, reindex and analyse the affected tables on staging first. Migration work is described on oxedge.com/odoo-erp-dubai/odoo-migration.

TLS, the reverse proxy and who can reach the server

Users should only ever see HTTPS. The usual pattern is Nginx or Caddy as a reverse proxy, terminating TLS and forwarding to the Odoo workers on localhost. Use a certificate from a public CA (Let's Encrypt is the common free path) and automate renewal. A certificate that expired on a Thursday morning is a preventable outage.

Once HTTPS is stable, turn on HSTS, disable old TLS versions, and keep PostgreSQL and SSH off the public internet, behind a VPN or allow-list. Close unused database-manager screens. The proxy cannot replace application permissions, two-factor authentication for administrators, or a short list of people who may install modules. Custom modules live in your repository and are deployed through staging, not copied by hand onto the live box. That process sits with oxedge.com/odoo-erp-dubai/odoo-development.

Licence and infrastructure cost should be planned together for a self-hosted Odoo system

Backups and disaster recovery you can actually use

A snapshot of the virtual machine is not, by itself, a restore plan. Odoo has two stores that must be consistent: the PostgreSQL database and the filestore. Restore one without a matching copy of the other and attachments will not match invoices.

What to back up, and how often

  • [
]A nightly (or more frequent) PostgreSQL backup: a logical dump, or a physical backup with WAL archiving if your recovery point must be measured in minutes rather than hours.[]The filestore taken at the same moment, or with a method that keeps it consistent with the database dump.[]The Odoo configuration, the reverse-proxy configuration, the systemd units, and the exact versions of Odoo, Python packages and custom modules.[]A copy of the backup in a second location that still obeys your residency rule. A second disk in the same server is not offsite.

Write the recovery point and recovery time you actually need. A trading company that invoices all day may not accept a 24-hour data loss; a small professional firm might. The backup method has to match that number, not a default cron job that has never been read.

The restore test is the backup

Before go-live, and then at least quarterly, restore the latest backup onto staging or a temporary server. Confirm that administrators can log in, that yesterday's invoices and attachments are present, that scheduled actions are disabled so the copy does not email customers, and that a key user can open a quotation. Write the steps so two people in the company can follow them without the implementer. The same rule applies to DNS, the TLS certificate and the account that can rebuild the machine.

What a bad day looks like

Plan for three failures: a disk or instance loss, a bad module or failed upgrade, and a ransomware or stolen-credential event. The third may need a copy that the live server's credentials cannot alter, so the offsite backup should use a separate account and, where possible, immutability for a defined number of days. Month-end, VAT return week and WPS payroll week are the worst times to discover a hole in this plan. E-invoicing adds another dependency: Odoo raises the invoice and an Accredited Service Provider sends it. Test that connection on staging too. The note at what UAE businesses must do for e-invoicing is guidance, not tax advice; businesses with AED 50 million or more in revenue had to appoint a provider by 30 October 2026 and must go live on 1 January 2027, with later dates for smaller firms.

Trading and project operations that need a recoverable Odoo database and filestore

A compact checklist before you go live on your own server

  • [
]The Odoo subscription, the server, the domain, the certificate and the backup store are in your company's name, with two internal administrators.[]The data-centre country is written down, and backups do not quietly leave that country if residency matters.[]Sizing has been tried with a realistic copy of data and of concurrent users, including month-end reports.[]PostgreSQL memory, checkpoints, autovacuum and connection limits have been set on purpose, and slow queries are being watched.[]HTTPS terminates at a reverse proxy, certificates renew automatically, and SSH plus PostgreSQL are not on the public internet.[]A backup of the database and the matching filestore has been restored once, by someone in your company, and the steps are written down.[]A staging copy exists for upgrades, imports and custom modules. Odoo gives each major version three years of standard support; test upgrades on a copy first.[]UAE VAT, WPS data if payroll is in scope, and the e-invoicing connection have been tried on staging.

Payments for set-up work typically run in milestones of 40%, 40% and 20%, with 30 days of free bug fixes after go-live, excluding 5% VAT. Use those thirty days to confirm that backups still run and that the named administrators can reach the box without the implementer.

FAQ

Is a UAE data centre always required?

Not always, but it is a question you should answer in writing before you rent the server. Some companies need it because of a contract or a policy; others may use a nearby region. If you do need it, the backups and any replica have to follow the same rule.

Do we still need staging if we have good backups?

Yes. Backups recover you after a failure. Staging is where you try an upgrade, a module or a large import before it touches live invoices. They solve different problems, and you need both.

Who should be able to restore the system?

At least two people in your company, plus a written procedure that has been used at least once. If the only person who has ever restored is an external implementer, the plan is incomplete.

How does self-hosting change the cost of custom work?

Custom code still carries yearly upkeep of about 25% of the build cost, because each version upgrade needs a check on a copy. Self-hosting adds the server, monitoring and backup work on top. A cheap module on a box with no staging and no restore test is not cheap.

Talk to OXEDGE

If you are deciding whether your own server is the right home for Odoo, or you already have a box and no tested restore, a short scoping workshop is the next step. Oxedge Solutions helps UAE businesses choose a host, size it, and put backups and staging in the company's name. The hosting page is oxedge.com/odoo-erp-dubai/odoo…

Oxedge
Office # 208, Bu Shaqer Building, Al Garhoud, Dubai - 127902
Phone: +971 50 815 3521
Email: info@oxedge.com
Hours: Monday–Saturday 9am–5pm, Sunday closed
oxedge.com/odoo-erp-dubai/odoo…

⇧