Xtrabackup备份到远程服务器

1.建立ssh免登陆
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

  1. 验证ssh(出现日期则成功)
    ssh xxx.xxx.xxx.xxx date
    2.开始Xtrabackup远程备份
    innobackupex --stream=tar ./ | ssh [email protected] \ "cat - > /data/date +"%Y%m%d_%H%M%S".tar"

猜你喜欢

转载自blog.51cto.com/2074199/2344923