Self-Hosting Odoo in Dubai: Data Residency, Server Sizing, PostgreSQL Tuning and a Recoverable Backup Plan
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.
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
- [
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:
- [
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.
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
- [
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.
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
- [
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.
A compact checklist before you go live on your own server
- [
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…