New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose admin endpoint to backup DB #41
Comments
I've put quite a bit of thought into how to implement this over the course of the build, but want to get a better idea of how other users would expect this to be done. Currently, you can just There are a couple of ways I have considered this, but all have trade-offs in security, management/maintenance, or complexity. All of the following would implement the Bolt
Any thoughts on these or other implementations? p.s. since all routes are registered to the |
I like option 1 best - I just want to curl and download on a cron job |
@bketelsen - I have most of this implemented now as per option 1. The way it works is there is one new route registered at '/admin/backup' that requires a query string: Unfortunately I ran out of time before I'm now traveling back to LA, so I can't wrap up and push until later tonight. Just wanted to let you know it's almost there to save you time implementing it yourself in case you were thinking about it. |
@bketelsen - this has been pushed to master. just adding a new release and will then close this issue. |
Thanks for this! |
Documentation for backups is here: https://github.com/ponzu-cms/ponzu/wiki/Backups in case anyone finds this issue via search while looking for Ponzu backup info. |
consider exposing admin or api endpoint to stream bolt db contents
https://github.com/boltdb/bolt#database-backups
The text was updated successfully, but these errors were encountered: