Skip to content

Instantly share code, notes, and snippets.

View ryanoboril's full-sized avatar

Ryan Oboril ryanoboril

  • Philadelphia, PA
View GitHub Profile
@ryanoboril
ryanoboril / import-db.sh
Created June 6, 2018 20:49 — forked from hartleybrody/import-db.sh
Copy data from Heroku Postgres into local database
# copy/import data from heroku postgres to localhost pg database
# useful for copying admin's work on live site into local database to reproduce errors
# https://devcenter.heroku.com/articles/heroku-postgres-import-export
# take heroku pg snapshot and download
heroku pg:backups:capture
heroku pg:backups:download
# load the dump into local postgres database, assuming $DATABASE_URL set locally