OSSutil
Ali version of Minio
(https://min.io/)
download ossutil
first, you need to download ossutil
first
OS:
curl https://gosspublic.alicdn.com/ossutil/install.sh | sudo bash
curl -o ossutil-v1.7.19-windows-386.zip https://gosspublic.alicdn.com/ossutil/1.7.19/ossutil-v1.7.19-windows-386.zip
config ossutil
./ossutil config
Params | Description | Instruction |
---|---|---|
endpoint | the Endpoint of the region where the Bucket is located | |
accessKeyID | OSS AccessKey | get from user info panel |
accessKeySecret | OSS AccessKeySecret | get from user info panel |
stsToken | token for sts service | could be empty |
Info
and you can also modify /home/<$user>/.ossutilconfig
file directly to change the configuration.
list files
ossutil ls oss://<$PATH>
download file/dir
you can use cp
to download or upload file
ossutil cp -r oss://<$PATH> <$PTHER_PATH>
upload file/dir
ossutil cp -r <$SOURCE_PATH> oss://<$PATH>