mysql-operator icon indicating copy to clipboard operation
mysql-operator copied to clipboard

How do create first backup(xbstream)

Open enoliveira opened this issue 4 years ago • 0 comments

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,

enoliveira avatar Dec 21 '21 23:12 enoliveira