mysql-operator
mysql-operator copied to clipboard
How do create first backup(xbstream)
Hi.
I have a VM running MySQL8. I want to create a backup and deploy MysqlCluster on k8s.
I tried to create the xbstream.gz like:
xtrabackup -uroot -pPASS -H HOST --stream=xbstream --target-dir=/data/backups/ > /xbstream/backups.xbstream
gzip -c /backups/backup.xbstream > /backups/backup.xbstream.gz
But it fails when restoring. Any idea? Thanks,