安装MinIO Client (安装在源端)
下载MinIO Mc客户端
wget http://dl.minio.org.cn/client/mc/release/linux-amd64/mc
赋予Mc权限
chmod +x mc
测试mc
mc --help
添加Minio服务的访问权限(源端执行)
#方法1
mc config host add minio_188 http://10.191.73.188:9000 minioadmin minioadmin
mc config host add minio_28 http://10.191.73.28:9000 minioadmin minioadmin
#方法2
mc alias set minio_wuhan http:// 10.191.73.188:9000 minioadmin minioadmin
mc alias set minio_shenzhen http:// 10.191.73.28:9000 minioadmin minioadmin
数据同步 将两个Minio的Buckets数据进行同步 188--->28
可反向28--->188
mc mirror --remove --overwrite --watch minio_188 minio_28
执行后数据同步完成后会监控桶数据变化进入实时同步