Skip to content

Instantly share code, notes, and snippets.

@jsteiner
Forked from croaky/gist:2957583
Created June 20, 2012 02:12
Show Gist options
  • Save jsteiner/2957762 to your computer and use it in GitHub Desktop.
Save jsteiner/2957762 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