下载安装rclone
curl https://rclone.org/install.sh | sudo bash
如果提示
None of the supported tools for extracting zip archives (unzip 7z busybox) were found. Please install one of them and try again.
是因为Linux没有解压工具
安装一下即可,安装命令
yum install zip unzip
创建配置文件
rclone config
按照提示一步步,输入相应配置,即可。生成的文件位于:${HOME}/.config/rclone/目录下。
[minio-1] // 申明一个minio服务
type = s3 //类型 s3
provider = Minio
env_auth = false
access_key_id = minio // 这是minio的账号
secret_access_key = minio123 // 这是minio的账号密码
region = cn-east-1
endpoint = minio地址1 //这是minio的地址,
location_constraint =
server_side_encryption =
[minio-2] // 申明一个minio服务
type = s3
provider = Minio
env_auth = false
access_key_id = minio
secret_access_key = minio123
region = cn-east-1
endpoint = minio地址2
location_constraint =
server_side_encryption =
迁移命令
rclone sync minio-1:bucket-1 minio-2:bucket-2