Skip to content

Instantly share code, notes, and snippets.

@croaky
Created June 20, 2012 01:32
Show Gist options
  • Save croaky/2957583 to your computer and use it in GitHub Desktop.
Save croaky/2957583 to your computer and use it in GitHub Desktop.
Getting a production dump from Heroku backups
curl -o latest.dump `heroku pgbackups:url --app project-production`
pg_restore --verbose --clean --no-acl --no-owner -d project_development latest.dump
rm latest.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment