阿里云ossutil 使用简单笔记

下载地址:https://help.aliyun.com/document_detail/61872.html?spm=5176.8465980.home.13.4e701450UuZbra

https://ram.console.aliyun.com/?spm=5176.2020520153.0.0.7c18415dqY8VZi#/user/list?guide  访问控制-用户管理 添加用户的oss权限  获得accessKeyID  accessKeySecret

linux 下配置文件

[Credentials]
language=ch
endpoint=oss-cn-beijing-internal.aliyuncs.com(对应内网节点)
accessKeyID=LTAI*******EHlF
accessKeySecret=EGDPD2n********OPx6

连接

./ossutil -c ossconfig ls oss://heloo-farm  -c配置文件路径  ls  查看

./ossutil -c ossconfig cp -r -f ./hello-farm/ oss://heloo-farm2/  上传本地hello-farm 到oss://heloo-farm2   -r 文件夹 -f 强制覆盖

./ossutil -c ossconfig cp -r --update oss://heloo-farm/ ./hel00-farm  下载到本地./hel00-farm  -r 文件夹 -f 强制覆盖

原文地址:https://www.cnblogs.com/hackermi/p/9378814.html