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&
percona xtrabackup使用xbstream进行流式备份恢复
原文地址:http://gaoquan.blog.51cto.com/4503718/1737053