192.168.31.64:
innobackupex --defaults-file=/data/mysql/3306/etc/my.cnf --user=root --compress --stream=xbstream ./ | ssh root@192.168.31.65 "xbstream -x -C /data/mysql/backup/"
192.168.31.65:
wget http://www.quicklz.com/qpress-11-linux-x64.tar
tar -xf qpress-11-linux-x64.tar
ln -s qpress /bin/qpress
cd /data/mysql/backup/
for f in `find ./ -iname "*\.qp"`; do /bin/qpress -dT2 $f $(dirname $f) && rm -f $f; done
innobackupex --defaults-file=/data/mysql/3306/etc/my.cnf --apply-log /data/mysql/backup/
innobackupex --defaults-file=/data/mysql/3306/etc/my.cnf --copy-back /data/mysql/backup/
chown -R mysql:mysql /data/mysql/3306
/usr/local/mysql/bin/mysqld_safe --defaults-file=/data/mysql/3306/etc/my.cnf&
转载于:https://blog.51cto.com/gaoquan/1737053