Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
We have an OpenERP setup that has 2 databases : One production and one test. The problem is that the test database is quite old and not accurate, so our tests cannot be reliable. My question is surely quite simple, but i'm inexperienced enough to be unsure about it...
On the login script, a user can access the "manage database" menu which let the user the ability of creating, backuping, restoring DBs. We're dumping our production database every 24H. Is it possible to restore the production dump into the test database with a simple action ? I'm afraid of the dump to have the "production" name in it and therefore induce some restore problem (but i may be wrong)...
What is the simplest and most reliable method to copy our production database into the existing test database ?
Thnaks in advance for your answers.
I think sparenton want to have one server with 2 db. I have no experience with "manage database" menu, but, you can use pgAdmin to manage your databases.
In pgAdmin :
- Connect your server
- Right click on a database, and backup it (I use custom format).
- Create new database (with the same owner than production database)
- Restore your backup.
You can use "cron" in a linux server to do a backup periodically.
An other way to duplicate database (but you must stop openerp server) :
- Close all connections to your production database
- Connect to postgres database
- Launch SQL command : "create database my_duplication_of_prod_db with template prod_db"
I don't know what's your infrastructure but another (more secure) alternative to backup your openerp server if you work with virtualization is to backup entirety of VM (that's the best I think but not everyone works with virtualization).
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 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
|Asked: 5/30/13, 11:46 AM|
|Seen: 1633 times|
|Last updated: 3/16/15, 8:10 AM|