Odoo Help

1

Is a database dump the same as a backup? Is it done from within OpenERP or at a command prompt?

By
Allan Lindquist
on 10/29/13, 10:19 AM 2,432 views

Is a database dump the same as a backup? Is it done from within OpenERP or at a command prompt? There is a command in PostgreSQL 9.3 bin directory pg_dump is this the command used?

2
Ray Carnes
On 10/29/13, 2:56 PM

Yes.

It is done via the Manage Databases link on the login page.

What actually happens is that OpenERP calls the relevant PostgreSQL commands. The exact format of the commands that OpenERP uses for backup and restore is below.

For backup

pg_dump --format=c --no-owner --username=<> --host=<> --port=<> <dbname>

For restore:

pg_restore --no-owner --dbname=<>

... and you can even pipe pg_dump with pg_restore to replicate a test environment from a production one.

Daniel Reis
on 10/29/13, 6:02 PM

I cannot find the Manage Database link in the online verion?

DataHome
on 1/4/14, 4:40 PM

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.

Register

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)

Stats

Asked: 10/29/13, 10:19 AM
Seen: 2432 times
Last updated: 3/16/15, 8:10 AM