Edo, a simple thor script to do heroku backups
After several mistakes and loss of data I’ve deceided to look again into automatic backups of my Heroku apps. I did it before but it was before Heroku introduced their PgBackups addon. So part of the api back then was not up to date to play with this.
I lost some data recently so I needed to do something serious about it involving replicated off site storage with timestamps and all. I looked around on the web and found several posts here and there (stack overflow, gists …). One seemed quite complete and was posted in a gist a blog : Carl Hörberg’s.
From there I made some changes since I’m using bundler and Aws instead of raw gem usage and AWS/S3 (matter of taste), after having something running I moved it to use Thor actions and voila : Edo. Carl was nice enough to send some comments and save me some trouble about it. I moved back to his open-uri usage instead of curl which make Edo far more portable indeed.
How it works
Simply put Edo is triggering backups of each of your apps, downloading locally and then uploading to an Amazon S3 bucket. You can read more details in the README and in the code obviously.
So have a fork at it people, it’s under MIT licence and thanks Mr Carl Hörberg for your code, and your help.


