Skip to Content
Menu
This question has been flagged
3 Replies
5618 Views

On odoo.sh ,If we already have one production branch with production DB, how we can create new DB on our staging branch instead of importing the production DB or restoring it from automated backups.

Avatar
Discard
Best Answer

You can hit the "+"-sign in the staging branch section.

Then you can select from which branch it should fork the staging branch... 

Enter a name in "To" action and the staging branch will be created.

The staging branch is always a copy of the production db as far as i remember. the dev branches will be a demo database with the modules installed in the production branch...

So i think a new (or empty) db in staging section is not possible.

Avatar
Discard
Best Answer

Create a new database without installing any Apps on another Server (maybe hosted locally). Take a backup and restore that backup to the staging branch. 

Avatar
Discard
Author Best Answer

I did not see any possiblity , so we should have setup the local envirnoment of the vesrion we want to create database of and then created a raw DB there which can be downloaded and imported to SH staging branch.

Avatar
Discard

What is the exact goal? Do you want to remove the production db completly and have a new database in staging?
If you upload an existing backup (from local env) it will be used for production and staging. So as far as i know you will not be able to separate the production and staging db´s.

Author

@Nils
The Goal is to use Raw DB on one staging branch for some testing wich is not possible on production db backup.
If I will upload a backup , it will only be used for staging not for production.
The production and staging DBs are always separate.

Hey Muhammad,
ok i will have a look. Up to this point i thought this is not, as the backups for example refers to the same files... from both production and staging.
But thanks for the input! Maybe this is helpful to know for future purposes.

Related Posts Replies Views Activity
0
Sep 24
1418
2
Aug 25
3116
1
Mar 24
2170
2
Jan 24
2967
2
Oct 23
3361