Skip to content

Instantly share code, notes, and snippets.

@sfandrew
sfandrew / gist:c9de27a5acbe1133206c843be7d44168
Created July 6, 2016 20:43 — forked from wrburgess/gist:5528649
Backup Heroku Postgres database and restore to local database

Grab new backup of database

Command: heroku pgbackups:capture --remote production

Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712

Get url of backup download

Command: heroku pgbackups:url [db_key] --remote production