Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6590 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

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