minio数据迁移-mc

minio数据迁移-mc

下载/安装

wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x ./mc

配置

./mc config host add ${MINIO_NAME} http://${HOST_IP}:${Port} ${UserName} ${PASSWD}
example:

./mc config host add minio-source http://source-ip:source-port source_access_key_id source_secret_access_key
./mc config host add minio-target http://target-ip:target-port target_access_key_id target_secret_access_key

执行

./mc mirror minio-source:bucket-source minio-target:bucket-target

参考

http://docs.minio.org.cn/docs/master/minio-client-complete-guide#watch

你可能感兴趣的:(minio,数据迁移,mc)