标签:default _each sed get redo ica pat 文件 copy
wget https://repo.percona.com/apt/percona-release_0.1-6.$(lsb_release -sc)_all.deb
sudo dpkg -i percona-release_0.1-6.$(lsb_release -sc)_all.deb
sudo apt-get update
sudo apt-get install percona-xtrabackup-24
CREATE USER ‘bkpuser‘@‘localhost‘ IDENTIFIED BY ‘bkppassword‘;
GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT ON *.* TO ‘bkpuser‘@‘localhost‘;
flush privileges;
mkdir -p /home/dw/backup/fullbak
mkdir -p /home/dw/backup/incbak
innobackupex --user=dw --password=123 --no-timestamp path_to_fullbak;
innobackupex --user=dw --password=123 --no-timestamp --incremental path_to_increbak --incremental-basedir=which_backup_to_base;
innobackupex --apply-log --redo-only path_to_fullbak;
innobackupex --apply-log --redo-only path_to_fgullbak --incremental-dir=path_to_each_increbak;
innobackupex --copy-back path_to_fullbak;
mysqlbinlog --no-defaults abs_path_to_binlog --start-position=pos | mysql -udw
恢复所有数据标签:default _each sed get redo ica pat 文件 copy
原文地址:https://www.cnblogs.com/liushi-Oscar/p/9577521.html