Skip to content

Instantly share code, notes, and snippets.

@speedystampedo
speedystampedo / gist:7b3a945c54b38a200a59
Created March 27, 2016 09:21 — 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