返回

rclone 阿里云OSS配置文件模板

   
摘要GPT
摘要小助理暂时失联跑路啦……😜

示例:

修改:云存储名称、ID、密钥、endpoint,其他默认

[oss] # 云存储名称,随意!但使用rclone时需要一致
type = s3
provider = Alibaba
env_auth = false
access_key_id = <ID>
secret_access_key = <密钥>
endpoint = oss-cn-shenzhen.aliyuncs.com # 这里我的是shenzhen(深圳)
acl = public-read
storage_class = STANDARD
bucket_acl = public-read

命令:

rclone sync D:\blog oss:tvcdn\blog -u -v -P --transfers=20 --ignore-errors --buffer-size=128M --check-first --checkers=10 --drive-acknowledge-abuse --exclude "/{.git,public,resources}/" --exclude "*.mp4"

命令解读

序号操作命令
1同步本地文件夹 D:\blog 到远程 oss:tvcdn\blogrclone sync D:\blog oss:tvcdn\blog
2忽略已存在文件(此参数慎重)--ignore-existing
3仅更新新文件-u
4显示详细进度-v -P
5并发传输数量为 20--transfers=20
6忽略错误--ignore-errors
7缓冲大小为 128 M--buffer-size=128M
8在首次同步前检查文件列表--check-first
9使用 10 个检查线程--checkers=10
10启用 Google Drive 滥用确认--drive-acknowledge-abuse
11排除 .gitpublicresources 文件夹--exclude "/{.git,public,resources}/"
12排除所有 *.mp4 文件--exclude "*.mp4"
知识共享许可证 CC BY-NC-SA 4.0
最后更新于 2024-07-17 18:28
使用 Hugo 构建
主题 hugo-magic小洋葱 魔改 由 Jimmy 设计
Written by Human, Not by AI