安装 rclone
curl https://rclone.org/install.sh | sudo bash
编辑 /root/.config/rclone/rclone.conf
配置文件
[oldminio]
type = s3
provider = Minio
env_auth = false
access_key_id = minio1
secret_access_key = minio1@123
region = cn-east-1
endpoint = https://minio.exemple.com
location_constraint =
server_side_encryption =
[newminio]
type = s3
provider = Minio
env_auth = false
access_key_id = minio2
secret_access_key = minio2@123
region = cn-east-1
endpoint = http://10.103.209.130:9000
location_constraint =
server_side_encryption =
同步命令
rclone sync -P oldminio:mybucket newminio:mybucket
- 使用
sync
参数,同步有差异的数据 -P
显示详细过程mybucket
桶名称,新minio
没有则自动创建