IMPORTANT: Please check that the copy-back run completes successfully. At the end of a successful copy-back run innobackupex prints "completed OK!".
innobackupex version 2.4.6 based on MySQL server 5.7.13 Linux (x86_64) (revision id: 8ec05b7) Original data directory /u01/my3307/data is not empty! 當(dāng)然我們大多數(shù)據(jù)時候是不會在原來的實例上做操作的,都會把相應(yīng)的備份在奇他的實例上進行恢復(fù),然后再導(dǎo)出導(dǎo)入到誤操作的實例。這里我們直接清掉目錄,然后再次運行,查看恢復(fù)后的數(shù)據(jù): dbadmin@test 03:41:56>select * from t; +------+ | id | +------+ | 1 | | 2 | +------+ 2 rows in set (0.00 sec) 同樣的被恢復(fù)的目錄里會多出來兩個文件,一個是xtrabackup_binlog_pos_innodb,一個是xtrabackup_info。在這兩個文件中都可以看到你最后的log,pos。在info里還可以看到lsn。我們基于這個pos再進行binlog的重演,恢復(fù)在binlog沒有被備份的數(shù)據(jù)。 1076