xtrabackup remote streaming backup script

1, xbstream flow, can create your own local folder, remote folder must exist

 innobackupex --host=127.0.0.1  --post=3306 --stream=xbstream  --compress /root/backup/ | ssh [email protected] "xbstream -x -C /tmp/"

2, xbstream flow, for end machines need to extract the compressed file and clean up

192.168.56.15
xtrabackup --decompress --target-dir=/tmp/
find /tmp/ -name "*.qp" |xargs  rm -f

3, xbstream stream need to install software on the end

Guess you like

Origin blog.51cto.com/860143/2432872