Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nabinno/3800cf556f30d59732f9341fcdeb9a82 to your computer and use it in GitHub Desktop.
Save nabinno/3800cf556f30d59732f9341fcdeb9a82 to your computer and use it in GitHub Desktop.
How to restore PostgreSQL database from Heroku.
curl -o db/app.dump `heroku pg:backups public-url -a app-name`
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d app_development db/app.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment