원격 스트리밍 백업 스크립트를 xtrabackup

1, xbstream 흐름, 자신의 로컬 폴더를 만들 수 있습니다, 원격 폴더가 존재해야합니다

 innobackupex --host = 127.0.0.1 --post = 3306 --stream = xbstream --compress / 루트 / 백업 / | ssh를 [email protected] "xbstream -x -C / tmp를 /"

(2)는 최종 기계 xbstream의 흐름은 압축 된 파일을 추출하고 정리해야

192.168.56.15 
xtrabackup --decompress --target-DIR은 = / tmp를 / 
/ tmp에 / -name "* .qp"를 찾을 수 | xargs를 RM -f

3 xbstream 스트림 끝에 소프트웨어를 설치해야

추천

출처blog.51cto.com/860143/2432872