minio数据迁移-rclone
时区设置
设置时区
timedatectl set-timezone Asia/Shanghai
时间同步
yum install -y ntpdate
ntpdate ntp.aliyun.com
下载/安装
yum install zip unzip
rclone安装
安装教程 https://rclone.org/install/
Fetch and unpack
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64
vim rclone.conf
[minio-source]
type = s3
provider = Minio
env_auth = false
access_key_id = source_access_key_id
secret_access_key = source_secret_access_key
region = cn-east-1
endpoint = http://source-ip:source-port
location_constraint =
server_side_encryption =
[minio-target]
type = s3
provider = Minio
env_auth = false
access_key_id = target_access_key_id
secret_access_key = target_secret_access_key
region = cn-east-1
endpoint = http://target-ip:target-port
location_constraint =
server_side_encryption =
执行
rclone copy --progress --config rclone.conf minio-source:bucket-source minio-target:bucket-target
./rclone copy --progress --config rclone.conf minio-source:zjic-slope minio-target:zjic-slope
参考
https://p3terx.com/archives/rclone-advanced-user-manual-common-command-parameters.html