Skip to content

Instantly share code, notes, and snippets.

@eyupatis
Created May 30, 2014 14:41
Show Gist options
  • Save eyupatis/98b74c46c905d8ce9a39 to your computer and use it in GitHub Desktop.
Save eyupatis/98b74c46c905d8ce9a39 to your computer and use it in GitHub Desktop.
Heroku Pg Backups
heroku pgbackups
heroku pgbackups:url b004
curl -o latest.dump "heroku pgbackups:url"
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d universiteplus_development latest.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment