heroku pgbackups:capture
curl -o latest.dump `heroku pgbackups:url`
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump
Created
January 20, 2013 04:53
-
-
Save tobyhede/4576734 to your computer and use it in GitHub Desktop.
Capture and restore Heroku Database to Local
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment