Skip to content

Instantly share code, notes, and snippets.

@bq1990
Created June 21, 2019 20:12
Show Gist options
  • Save bq1990/2c88da6f9c0bdefbdbc108b2e393addc to your computer and use it in GitHub Desktop.
Save bq1990/2c88da6f9c0bdefbdbc108b2e393addc to your computer and use it in GitHub Desktop.
Heroku pull db using sql dump
heroku run 'pg_dump -xO $DATABASE_URL' -a myapp | psql mydb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment