Odoo Help


I want to backup my database from my VPS s/m regularly&restore when needed,But i have an issue in restoration.Help me to solve

on 6/13/14, 7:44 AM 1,068 views

I have backup my database using the below code. 

pg_dump ${db} -U openerp -w -h localhost -f $filename

When i restore the same database through the interface, it creates a new database.

When i run psql -U postgres -d check -1 -f database_20140611_2300080974977.sql this command, it shows error.

How can i restore database, which backup using above command?

Or any other solution(backup through command and restore through command or interface)?


On 7/14/14, 6:50 AM

Backup database :- 

pg_dump --cluster 9.1/main --format=c old_database_name > new_database_name

Restore database :-

DB=new_database_name && createdb --cluster 9.1/main $DB && pg_restore --cluster 9.1/main --no-acl -O -d $DB <  backup_database_name.dump

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: 6/13/14, 7:44 AM
Seen: 1068 times
Last updated: 9/26/17, 12:14 AM