mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
26 lines
900 B
Text
26 lines
900 B
Text
|
--source include/have_debug.inc
|
||
|
CREATE TABLE t(i INT) ENGINE INNODB;
|
||
|
INSERT INTO t VALUES(1);
|
||
|
echo # xtrabackup backup;
|
||
|
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
|
||
|
--disable_result_log
|
||
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
|
||
|
--enable_result_log
|
||
|
echo # xtrabackup prepare;
|
||
|
--disable_result_log
|
||
|
exec $XTRABACKUP --prepare --target-dir=$targetdir;
|
||
|
let $_datadir= `SELECT @@datadir`;
|
||
|
--source include/shutdown_mysqld.inc
|
||
|
rmdir $_datadir;
|
||
|
error 1;
|
||
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --copy-back --datadir=$_datadir --target-dir=$targetdir --dbug=+d,copy_file_error;
|
||
|
list_files $_datadir;
|
||
|
rmdir $_datadir;
|
||
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --copy-back --datadir=$_datadir --target-dir=$targetdir;
|
||
|
echo # restart server;
|
||
|
--source include/start_mysqld.inc
|
||
|
SELECT * FROM t;
|
||
|
DROP TABLE t;
|
||
|
rmdir $targetdir;
|
||
|
|