-
Notifications
You must be signed in to change notification settings - Fork 86
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
Backup/restore database (KubeDB integration) #388
Comments
Even though it is a pretty "dirty" hack, you can do something like that:
Using pghoard would be a possibility, see https://github.com/ohmu/pghoard. |
Thanks @galexrt for your kind answer, maybe my question was not really clear. This is related to this question, how do we do automatic backup, and as this repository solves this in an elegant manner, the next question is, how do we do dumps before the backups, and how do we standardize this procedure. This is highly hypothetic at this stage, but here is an example workflow:
Probably we'd need some more primitives to work on these topics :) All f this is of course highly hypothetic and would be nice in an ideal world! But once we have that, we coudl replace mysql with postgres, mongo, mariadb, elastic.. |
@pierreozoux , for database backups we recommend using something like https://kubedb.com . Database backups usually require using db level tools for safe backup and restore. KubeDB has backup/restore support for common databases https://kubedb.com/docs/0.8.0-beta.2/guides/mysql/snapshot/backup-and-restore/ |
@pierreozoux I don't think that 2 volumes are needed. You can use Also this can be solved with #351 |
As a feature proposal Stash could pick-up annotations like:
That could trigger the |
@Miouge1 actually, It is just about integrating kubedb dump and stash features. |
I plan to backup PVCs used for OpenLDAP, cockroachdb, redis, and mysql. AFAIK KubeDB covers only MySQL/Postgres/Redis. So a generic command thing would be really helpful. |
This would also solve consul snapshots, not only databases. I like the idea of central backup tool with one source for management, monitoring and alerts. Stash could pipe the stream to restic and "tag" the backup with the date and time. When a restore is necessary the restore command will receive the pipe from a specific backup file. |
Design is finalized here: #648 |
Dup #648 |
How do you backup such volumes?
The volume in itself is not really interesting, we need to dump data first.
What about puting a label on such volumes, and do a dump instead?
The text was updated successfully, but these errors were encountered: