导出:
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 [email protected] "lz4 -d |tar -zxC /dst_path"
时间: 2024-11-14 12:50:45