How do I get a dump of PaaS environment database to local machine

I want to debug a certain error case on my PaaS environment, therefore I would like to work with this on my local machine. How do I create a dump of the database to be able to use it on my local machine?
Best Answer
-
Heyhey @daniel.gebhard ,
I asked our cloud team and basically there are multiple possibilities:
One is to use mysqldump being connected to the env via respective VPN.
Creds can be found in the AWS ECS -> Task Definitions -> zed\boffice.If it's a live Prod, it makes sense to ask the support to provide the dump because dumping directly from live prod DB will lock it.
And support can do it in two ways:
1) in case there as internally used RO replica, they will dump it instead of the main one
2) they can restore 1h old snapshot and dump it instead of the main one.
And then they can put the dump into S3 where you will just need to download it to the local.Hope this helps :)
All the best,
Florian
2
Answers
-
Heyhey @daniel.gebhard ,
I asked our cloud team and basically there are multiple possibilities:
One is to use mysqldump being connected to the env via respective VPN.
Creds can be found in the AWS ECS -> Task Definitions -> zed\boffice.If it's a live Prod, it makes sense to ask the support to provide the dump because dumping directly from live prod DB will lock it.
And support can do it in two ways:
1) in case there as internally used RO replica, they will dump it instead of the main one
2) they can restore 1h old snapshot and dump it instead of the main one.
And then they can put the dump into S3 where you will just need to download it to the local.Hope this helps :)
All the best,
Florian
2 -
0
Categories
- All Categories
- 38 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 33 Spryker News
- 565 Developer Corner
- 435 Spryker Development
- 54 Spryker Dev Environment
- 296 Spryker Releases
- 30 Propel ORM
- 47 Community Projects
- 6 Gacela Project
- 3 PHP Bridge
- 21 Hackathon
- 3.2K π Slack Archives
- 115 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random
- 4 Code Testing
- 23 Product & Business Questions
- 46 Spryker Safari Questions
- 36 The Blackhole