0

I want to migrate my application from Heroku to my own ubuntu server. What is the correct syntax to do this using taps/heroku db:pull?

2 Answers 2

1

If you are moving data between a local and cloud database both of which are Postgres you should follow the instructions on Heroku's Devcenter:

https://devcenter.heroku.com/articles/migrating-data-between-plans

Sign up to request clarification or add additional context in comments.

Comments

0

You would simply do heroku db:pull to pull the database from Heroku to your local db which you would then backup and restore to your own server. If it's a large database you might want to look into Heroku pgbackups as an alternative as it will provide you with a downloadable backup.

Note: If you want to migrate between databases, ie postgres => mysql then you would have to use the db:pull approach.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.