innobackupex --slave-info --safe-slave-backup --no-timestamp tmp_last
innobackupex --apply-log tmp_last
rsync -avcz -e ssh root@目录 . && \
rm -f last/auto.cnf && mv last mysql && chown -R mysql:mysql mysql
start mysql
change master to master_host=xx',master_port=xxx;
reset slave; start slave IO_THREAD; stop slave IO_THREAD; reset slave; start slave;