mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
ee4eda40b9
due to different packaging issues. Also, Percona thinks that tar support has many limitations and should be removed as well( see discussion in https://bugs.launchpad.net/percona-xtrabackup/+bug/1681721) there is an alternative streaming format xbstream that is supported and does not have these limitations.
22 lines
632 B
Text
22 lines
632 B
Text
CREATE TABLE t(i INT) ENGINE INNODB;
|
|
INSERT INTO t VALUES(1);
|
|
|
|
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
|
|
mkdir $targetdir;
|
|
let $streamfile=$MYSQLTEST_VARDIR/tmp/backup.xb;
|
|
|
|
echo # xtrabackup backup to stream;
|
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --stream=xbstream > $streamfile 2>$targetdir/backup_stream.log;
|
|
echo # xbstream extract;
|
|
--disable_result_log
|
|
exec $XBSTREAM -x -C $targetdir < $streamfile;
|
|
|
|
echo # xtrabackup prepare;
|
|
exec $XTRABACKUP --prepare --target-dir=$targetdir;
|
|
|
|
-- source include/restart_and_restore.inc
|
|
--enable_result_log
|
|
SELECT * FROM t;
|
|
DROP TABLE t;
|
|
rmdir $targetdir;
|
|
|