Since Heroku migrated to their new database tiers, I’ve found myself without the automated backup plan provided by the pgbackups addon, as I’m only on a basic plan.
I’d happily run a daily pgbackups backup using the cron addon, if I knew what commands were actually executed on the remote side when I run heroku pgbackups:capture --expire on my end via the toolbelt.
My applications are all Python apps using the Cedar stack, so I’m not sure that the gem-based auto-backup options mentioned in other questions are available to me (some of those also mention backing up to S3, whereas I’d like to use the native backup storage mechanism if possible).
I’d just like to essentially run heroku pgbackups:capture --expire from cron, but the Heroku commands aren’t available on the server side.
Any tips would be very much appreciated. Thanks for reading.
$ PGPASSWORD=mypassword pg_dump -Fc --no-acl --no-owner -h myhost -U myuser mydb > mydb.dump