Skip to content

Instantly share code, notes, and snippets.

@mitfik
mitfik / gist:a765b3b6ee6b57944794fef9072cceda
Last active August 23, 2016 15:41 — 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