How to download files from Cloud Object Storage Service (OSS) to Local system4 min read
In our last article, we have seen how to Create Object Storage Service (OSS) bucket and Create a RAM user in Alibaba Cloud. & How to Copy files to Alibaba Cloud Object Storage Service Now we will see how to download files from Cloud Object Storage Service (OSS) to Local system.
OSS should be already activated and RAM user should be created and Access Key and Secret Key should be required. If you not yet created, Kindly go through our previous article how to Create Object Storage Service (OSS) bucket and Create a RAM user in Alibaba Cloud.
Ossutil allows us to manage OSS data easily through command lines and easy to manage or use through commands for bucket and object management.
Download ossutil installation file.
Change the permission of the file
chmod 755 ossutil64
endpoint: Endpoint of the region where the bucket belongs to. For more information, see Regions and endpoints.
accessKeyID: You can refer to our previous article.
accessKeySecret: You can refer to our previous article.
stsToken: This option is required only if we are using temporary STS token to access the OSS bucket.Otherwise, we can leave it blank.
Now configuring ossutil has been done.Let’s list the OSS bucket through ossutil command.
In web console,lets see
Now let’s see how to download one file from OSS bucket to local directory through command line using ossutil.
How to copy a folder from OSS bucket to local directory through command Line using ossutil
For help we can use.
There are lot of options in ossutil,we will see the other commonly used option later.