Community mailing list archives

Re: How to clone an Odoo instance?

MICROCOM, Martin Malorni
- 05/11/2016 09:27:55
Hi Jörg,
If your project is well structured and maintained in Git, you could probably do a script that will:
Backup your production database (with a command line db_dump and zip the filestore)
Stop Odoo on the clone
Update the environment on the clone with a Git pull 
Restore the database on the clone
Restart Odoo
Additionnal scripts that modify the settings could be run to fix your environment so that it doesn’t run the crons or send emails.

This is high level, maybe someone has a script already to do this.
You can have a look at the new book “Odoo Development Cookbook”, you will find sample code that you can use to do this.
Hope this helps,

Martin Malorni

From: Jörg Ricardo Schumacher <>
Reply-To: "Odoo S.A. Community" <>
Date: Wednesday, May 11, 2016 at 06:27
To: Community <>
Subject: Re: How to clone an Odoo instance?

Hello Cody,

it is not about speed, we need a training environment which hosts recent prod data, that's why.


Am 11.05.2016 um 10:57 schrieb Cody Kitterman:
Mr. Shumacher:
     Yes, because anything is possible, but why? I am wondering because there are a few other architecture options open to you. For instance,
if speed is your concern, I want to recommend you setup two instances behind a load balancer and have it point to a single database server: maintaining two copies of the same database, just for the sake of speed, would be a nightmare.

Cody K.

On Wed, May 11, 2016 at 4:27 AM, Jörg Ricardo Schumacher <> wrote:

we are running Odoo on a single server.

We want to run a second server, which runs a clone of the Odoo instance.
It should clone modules, file system, psql database, attachments.

It should be possible to work with this second systems, but changes will
be overwritten every 24hrs.

Is there an easy posibility to implement this?


Post to:

Post to:

Post to: