Odoo Help


How to restore Openerp

Jack Chuong
on 7/14/14, 11:46 PM 1,638 views

Hi all,
I'm using Openerp 7.0 , server : Centos 6.4 . I install Openerp by running "python setup.py install" .
My server is crashed, I have to restore Openerp into the new one. I have openerp.sql dump from postgres.
I install Openerp successfully by following this article : http://rathinavneet.blogspot.com/2013/06/install-openerp-70-on-redhatcent-os-64.html
Then I imported openerp.sql to new server but it hasn't any data.
How can I have my new Openerp with same data as the old one ?

Hi Remya, I dump Postgresql DB by : pg-dump openerp > openerp.sql And openerp.sql is plaintext format. I didn't backup Openerp Installation folder (openerp/addons , conf, modules) , can I restore my Openerp ?

Jack Chuong
on 7/15/14, 1:47 AM



| 7 8 8
Thiruvananthapuram, India

Working as an Senior ODOO developer. http://in.linkedin.com/pub/remya-r/69/a23/298

On 7/15/14, 1:33 AM

pg_restore is the used for restoring a PostgreSQL database from an archive created by pg_dump in one of the non-plain-text formats. Following is the command with it's options that will restore the database from the binary backup file:
pg_restore -i -h host-name -p port-number -U username -d dbname -a -v "backup-filename.backup"


I noticed an interesting point while using pg_restore. pg_restore doesn't work properly if there are referential integrity among the tables on the target database as tables are restored sequentially. So, the best approach to restoring  is first create the tables in the database without enforcing their referential integrity, then run pg_restore. 

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/14/14, 11:46 PM
Seen: 1638 times
Last updated: 3/16/15, 8:10 AM