Skip to content
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 strategy #24

Open
teawithfruit opened this issue Jun 29, 2018 · 1 comment
Open

Backup strategy #24

teawithfruit opened this issue Jun 29, 2018 · 1 comment

Comments

@teawithfruit
Copy link

I didn't found anything about backup and restore in the deployment files.
How do you provide backup and restore in this mariadb cluster?

@solsson
Copy link
Contributor

solsson commented Jul 2, 2018

We have a script that dumps to regular backed up file storage, basically using
kubectl --namespace=mysql exec $POD -- mysqldump $MYSQLAUTH --skip-dump-date --databases "$dbname"
with $dbname from kubectl exec mysql $MYSQLAUTH -B -N -e 'show databases'.

I guess there are lots of more sophisticated approaches. We also have application level backups of the stuff that matters in mariadb, so this is good enough for us. But it'll be interesting what you find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants