Make database backups

Make a backup of the database

heroku pg:backups:capture --remote staging
heroku pg:backups:capture --remote production

List all the backups:

heroku pg:backups --remote staging
heroku pg:backups --remote production

Download the most recent backup. This generates a URL where it can be downloaded from.

heroku pg:backups:url --remote staging
heroku pg:backups:url --remote production

Last updated