Cake is a heroku plugin that simplfies downloading and restoring the latest backup of your postgres database locally.
Navigate to your repository
$ cd ~\Repositories\your-project
Pull the data
$ heroku cake:slice
Enjoy your cake ! ๐ฐ ๐บ
heroku plugins:install [email protected]:alphasights/cake.git
You'll need to create a cake.yml in each repository that you want to restore. It requires three pieces of information. Checkout example.cake.yml.
The name of the remote database you want to find a backup for (with _URL suffix)
remote_database: HEROKU_POSTGRESQL_PURPLE_URL
The name of the local database you want to restore to
local_database: local-database-name
The name of the app where the database is located
app: herokuapp-name