下载rclone工具
[root@ceshi-minio ~]# wget https://downloads.rclone.org/v1.62.2/rclone-v1.62.2-linux-amd64.zip
--2023-07-14 15:01:15-- https://downloads.rclone.org/v1.62.2/rclone-v1.62.2-linux-amd64.zip
Resolving downloads.rclone.org (downloads.rclone.org)... 95.217.6.16, 2a01:4f9:c012:7154::1
Connecting to downloads.rclone.org (downloads.rclone.org)|95.217.6.16|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17778094 (17M) [application/zip]
Saving to: ‘rclone-v1.62.2-linux-amd64.zip’
100%[===================================================================================================>] 17,778,094 1.62MB/s in 11s
2023-07-14 15:01:28 (1.55 MB/s) - ‘rclone-v1.62.2-linux-amd64.zip’ saved [17778094/17778094]
[root@ceshi-minio ~]# ls
rclone-v1.62.2-linux-amd64.zip
[root@ceshi-minio ~]# unzip rclone-v1.62.2-linux-amd64.zip
Archive: rclone-v1.62.2-linux-amd64.zip
creating: rclone-v1.62.2-linux-amd64/
inflating: rclone-v1.62.2-linux-amd64/rclone.1
inflating: rclone-v1.62.2-linux-amd64/README.txt
inflating: rclone-v1.62.2-linux-amd64/README.html
inflating: rclone-v1.62.2-linux-amd64/git-log.txt
inflating: rclone-v1.62.2-linux-amd64/rclone
[root@ceshi-minio ~]# cd rclone-v1.62.2-linux-amd64
[root@ceshi-minio rclone-v1.62.2-linux-amd64]# ls
git-log.txt rclone rclone.1 README.html README.txt
[root@ceshi-minio rclone-v1.62.2-linux-amd64]# mv rclone /usr/bin/
配置rclone配置文件
默认rclone配置文件路径 ~/.config/rclone/rclone.conf 可以通过 rclone config file获取
MinIO配置样例
OBS配置样例
上传测试文件进行迁移
执行rclone命令进行复制迁移
[root@ceshi-minio rclone]# rclone copy -P minio:ceshi obs:ceshi-myj
Transferred: 2.553 MiB / 2.553 MiB, 100%, 0 B/s, ETA -
Transferred: 1 / 1, 100%
Elapsed time: 0.6s
执行命令rclone copy -P minio:src_bucket/ obs:dst_bucket 将源数据拷贝到目标桶中复制数据