Community Mailing lijst archieven


Re: How to clone an Odoo instance?

- 11-05-2016 10:02:12
2016-05-11 15:43 GMT+02:00 Martin Malorni <>:
> 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.

Indeed, if you drop the requirement to clone everything, (and I think
it is a good idea to clone everything) you don't need anything special
rsync is able to do the job if you don't use git.

Still take care that the clone system should not interact with the
outside as the primary does and should not send mail

> 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