Hi,
I made a compressed backup with xtrabackup for my MySQL 5.7 using below command:
xtrabackup --backup --user=root --password= --stream=tar --target-dir=/var/lib/mysql/backup/ | gzip - | split -d --bytes=2GB - /var/lib/mysql/backup/s3-restore.tar.gz
In the output we have 3 backup files:
s3-restore.tar.gz00
s3-restore.tar.gz01
s3-restore.tar.gz02
Extract command that i’ve used:
tar -xvif /home/ubuntu/percona_xtrabackup/s3-restore.tar.gz00 -C .
But, when I try to extract backup from archive I receive an error:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Is there any other option to extract archived backups?
P.S.
MySQL version = 5.7
Xtrabackup = 2.7
OS = Ubuntu