Sign inSign up

jshapiro26/heroku_pg_migrate

By jshapiro26

•Updated almost 10 years ago

Pull a postgres database from a source Heoroku app and restore it a destination Heroku app.

Image
0

1.2K

jshapiro26/heroku_pg_migrate repository overview

⁠heroku_pg_migrate

⁠What does it do?

This image will run heroku pg:pull on your source app and restore it to a local postgres server running in the container. It will then run heroku pg:reset on the destination app deleting all content in the database. Next It will run a heroku pg:push to your destination app which restores all content from the source app.

⁠How to use this container
  • ensure you're logged into the heroku-tool belt on your local machine with docker login
  • docker pull jshapiro26/heroku_pg_migrate
  • docker run -v ~/.netrc:/root/.netrc jshapiro26/heroku_pg_migrate <source_app_name> <destination_app_name>

Tag summary

Content type

Image

Digest

Size

477.6 MB

Last updated

almost 10 years ago

docker pull jshapiro26/heroku_pg_migrate