网上很多都是复制粘贴的,根本就没验证对不对,看我这一篇就够了,亲测可用。
Rclone的使用
下载安装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
安装成功后提示
创建配置文件
这里我直接自己创建配置文件
vi /root/.config/rclone/rclone.conf
[minio-1]
type = s3
provider = Minio
env_auth = false
access_key_id = minio
secret_access_key = minio123
region = cn-east-1
endpoint = minio地址1
location_constraint =
server_side_encryption =
[minio-2]
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 =
下面我们看一下源minio服务器目录
执行同步命令
rclone sync minio-1:common minio-2:common
这样minio-1 的common 存储桶就同步到 minio-2 上面了。
************************************************************************************