If you want to make a backup of your database or just want to create a dump to migrate your db to another provider, you need to do these steps:

1. Connect to your running application trough SSH. To do that you need to click this link on OpenShift and run the displayed command.

Screen Shot 2016-05-16 at 11.56.00 AM

2. Create the dump using this command:

gzip dump.sql

3. After that you can scp the dump to any location you want.

One thought on “Make a dump of your MySQL DB on OpenShift

  1. aryo says:

    Awesome! it saves my time to backup my database

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.