How to Copy files to Alibaba Cloud Object Storage Service4 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.Now we will see how to copy files from one instance to Cloud Object Storage Service (OSS).
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 copy one file to OSS bucket through command line using ossutil.
How to copy a folder to OSS bucket through command Line using ossutil
For help we can use.
To download files or folders from OSS to the local system or any server please check this Download files/folders from OSS
There are lot of options in ossutil,we will see the other commonly used option later.