alibaba-cloud

How to move local directories to Alibaba Cloud OSS using ossutil tool?


I want to move a local directory to Alibaba Cloud OSS bucket using ossutil tool. The command I used to upload the video directory to OSS bucket - testbucket is ossutil cp -r video oss://testbucket but it throws no such keyword error.


Solution

  • List OSS buckets using ossutil ls.

    Once the buckets are listed copy the folder using the following command.

    ossutil cp -r folder_name/ oss://bucket-name
    

    It works on macOS.

    enter image description here