mysql-operator
mysql-operator copied to clipboard
Backups to a local storage
how to use "http" backup? @
There is not such as an HTTP backup
. Backups are made using Percona Xtrabackup and published on remote storage, like Google Storage, AWS S3 or Azure Blob.
To do a backup check out the operator documentation here.
Hope this helps, please let me know if you have more questions, also, we can talk further on slack.
I want to published on local storage?how to do?
Oh, ok, You can specify an HTTP remote for rclone, see documentation but it's read-only, you can use it to initialize a cluster, for example. But you can't publish backups over HTTP. Check out rclone documentation and maybe between supported remotes is something that works with your local storage. For example, using rclone with FTP will work but needs additional changes of how the rclone config is done, see this file.
This is a new feature so that backups can be made on a PVC or on host path volume.
Contributions are welcome!
I believe much simpler to do backups to local storage via Minio it is only one command to setup it in kubernetes.
helm install \
--name minio-service \
--set accessKey=some-access-key \
--set secretKey=some-secret-key \
--set service.type=ClusterIP \
--set persistence.size=2G
Minio is S3 compatible
Delgod, I am interested in backing up to Minio and wondered if could you provide me with a sample yaml file that I could use that would specify Minio as the destination ?
@Keithsc, please follow the documentation - https://www.presslabs.com/code/mysqloperator/backups/#setup-a-backup-on-s3 S3_ENDPOINT should be URL to minio service