Backup/Restore in special use case #483
-
I have a special use case and I would like to know if it is possible to restore a copy in my Doodba development environment The production system does not use Doodba. We haven't gotten around to setting it up yet (but I'll get there). I was wondering if there is a possibility of:
According to and interpreted when reading the documentation, I think that this is not possible (Backups are only available in the production environment) from the base but seeing a little the code I think that there is some possibility Has this situation occurred to you? Any recommendations? Today I can do it through "/web/database/manager" but as the database grows this will not work |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@flachica First you need to backup your production database from terminal, directly from postgresql. Use database/manager is not advised if you are in production environment and as you say if bbdd gets big is useless. Ok, when you have a backup.dump you can run this inside your doodba folder: Where '100_db_1' is the name of your db container and 'devel' is the name of database(if you follow directives and your environment is develop) |
Beta Was this translation helpful? Give feedback.
@flachica First you need to backup your production database from terminal, directly from postgresql. Use database/manager is not advised if you are in production environment and as you say if bbdd gets big is useless. Ok, when you have a backup.dump you can run this inside your doodba folder:
docker exec -i 100_db_1 pg_restore -U odoo -d devel -v < /path/to/backup/backup.dump
Where '100_db_1' is the name of your db container and 'devel' is the name of database(if you follow directives and your environment is develop)