Make it possible to backup / restore hubots and scripts after redeploy to Heroku
spajus opened this issue · 2 comments
Since Heroku's (Cedar) file system is ephemeral, currently running Hubots do not survive a redeploy of hubot-control app.
A possible solution would be to periodically backup a gzipped / serialized copy of /hubots
and /scripts
into db, with a possibility to restore it on demand. Perhaps some versioning would be nice too.
Versioning's exactly where my mind goes for this. Maybe tie into Github via oauth, with "Backup to new repo"/"Commit changes to selected repo"/"Restore from repo" buttons?
It only just recently launched, but https://oauth.io/ may be worth looking into as a quick path to integrating oauth services right now without having to worry about nuances of different services.
Backup to new repo / Restore sounds nice. Going to look into https://oauth.io