Skip to content

Instantly share code, notes, and snippets.

View nawlbergs's full-sized avatar

Nathan Alberg nawlbergs

View GitHub Profile
@nawlbergs
nawlbergs / gist:7f042cd609a95145b47d950f00bfccc3
Created November 26, 2017 16:02 — forked from guisehn/gist:6648c8fdcd1102a22a22
Backup Heroku Postgres database and restore to local database

Grab new backup

Command: heroku pg:backups capture -a [app_name]

Download

Command: curl -o latest.dump `heroku pg:backups public-url -a [app_name]`

Restore backup dump into local db