导出:
mydumper -u xxxxx -p xxxxx -B dbname -t 8 -o /backup_path -K
如果是导出到远程的备份机器,执行如下命令
mydumper -u xxxxx -p xxxxx -B dbname -t 8 -o /backup_path -K
tar zc /backup_path |pv |lz4 -B4|ssh root@192.168.10.250 "lz4 -d |tar -zxC /dst_path"
本文出自 “hanyun.fang” 博客,请务必保留此出处http://hanyun.blog.51cto.com/1060170/1622174
原文地址:http://hanyun.blog.51cto.com/1060170/1622174