配置EOS连接信息

创建用于配置EOS连接信息的文本文件,模板如下:

[EOS]
type = s3
provider = ChinaMobile
access_key_id = XXXXXXXX
secret_access_key = XXXXXXXXXXXXXXXX
endpoint = XXXXXXXX.cmecloud.cn
location_constraint = XXXXXXXX
acl = private

详细配置方法,请参考文档:将对象存储EOS配置为数据源

操作步骤

执行备份、迁移

执行如下命令:

rclone copy/sync/move source:source-bucket-name target:target-bucket-name --checksum --checkers 64 --transfers 64 --cache-chunk-size 10M --s3-chunk-size 10M --retries 10 -v --config C:\EOSRclone\eos.conf --log-file C:\EOSRclone\eos.log

实例:

rclone copy E:\bingo-data\test-copy-data EOS:bingo-zz/HR --checksum --checkers 64 --transfers 64 --cache-chunk-size 10M --s3-chunk-size 10M --retries 10 -v --config E:\bingo-data\Documents\rclonev1.58.EOS1.windowsamd64\rclone.conf --log-file E:\bingo-data\Documents\rclonev1.58.EOS1.windowsamd64\rclone-eos.log

bat脚本

@echo off
if "%1"=="h" goto begin
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
rclone copy E:\bingo-data\test-copy-data EOS:bingo-zz/HR --checksum --checkers 64 --transfers 64 --cache-chunk-size 10M --s3-chunk-size 10M --retries 10 -v --config E:\bingo-data\Documents\rclonev1.58.EOS1.windowsamd64\rclone.conf --log-file E:\bingo-data\Documents\rclonev1.58.EOS1.windowsamd64\rclone-eos.log