Skip to content

Instantly share code, notes, and snippets.

@cball
Created March 18, 2012 16:28
Show Gist options
  • Save cball/2076871 to your computer and use it in GitHub Desktop.
Save cball/2076871 to your computer and use it in GitHub Desktop.
Copy production heroku db to staging
# backup current production db
$ heroku pgbackups:capture --app myapp-production
# restore to staging
$ heroku pgbackups:restore DATABASE `heroku pgbackups:url --app myapp` --app myapp-staging
@codingTheHole
Copy link

Should be heroku pg:backups:capture --app myapp-production (missing first colon)

Thanks for posting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment