2

Is it possible to backup Heroku database using cron jobs?

I tried putting the following line into cron.rake:

heroku pgbackups:capture --expire

However it didn't work. The line works when I run it from Terminal.

Can you help?

2 Answers 2

2

Check out the heroku_s3_backup gem, which packages up the code necessary to do this in a neat way.

2
1

The gem heroku_backup_task integrates directly with the free PG Backups add-on for Heroku.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.