Created
December 19, 2014 07:10
-
-
Save AKNiazi/91159bbdcba42b17feb1 to your computer and use it in GitHub Desktop.
Import Data from Heroku to Local Machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IMPORTING DATA FROM HEROKU TO LOCAL MACHINE | |
Install the Heroku Backup tool | |
$ heroku addons:add pgbackups | |
Start using it | |
$ heroku pgbackups:capture | |
Download the remote db on Heroku (to your local machine) using curl | |
$ curl -o latest.dump `heroku pgbackups:url` | |
Load it* | |
$ pg_restore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment