Script for Creating and Fetching Database Backups on Heroku

Heroku recently announced a new database backup solution, PG Backups, to replace their previous one, bundles. The basic plan allows you to store two database backups on Heroku’s servers for free. Since I already have a backup solution which allows me to store any number of backups, I decided to write a script to create database backups on Heroku, download them, and back them up using my existing solution. PG Backups is incredibly easy to use, and does all of the heavy lifting.

Kudos to Heroku for continuing to find ways to make their platform easier to use.

The script is below. Hope you find it useful.

Leave a Reply

Your email address will not be published. Required fields are marked *