Odoo Help

Welcome!

This community 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.

0

How to restore Openerp

By
Jack Chuong
on 7/14/14, 11:46 PM 1,113 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
2

Remya

--Remya--
5813
| 7 8 8
Thiruvananthapuram, India
--Remya--

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

Remya
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. 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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