https://help.aliyun.com/document_detail/120075.htm
F:\oss
运行
ossutil.bat
#配置连接 默认文件:C:\\Users\admin\.ossutilconfig
ossutil config
oss-cn-hangzhou.aliyuncs.com
ALI_ACCESSKEY = xxxxxxxxxxx
ALI_ACCESS_SECRET = xxxxxxxxxxxxx
stsToken: 使用STS临时授权账号访问OSS时需要配置该项,否则置空即可
查看文件状态:
./ossutil ls
./ossutil64 ls oss://xxxx
./ossutil64 restore oss://xxx/xxx/ -r config.xml
#改为标准存储
./ossutil64 set-meta oss://xxx/xxxx/ X-Oss-Storage-Class:Standard -r
#文件存储类型
Standard:标准存储
IA:低频访问
Archive:归档存储
ColdArchive:冷归档存储