0

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.

Mark Henderson
  • 68,316
  • 31
  • 175
  • 255
cloudlin
  • 3
  • 1
  • I've never used this tool, but after a quick google, the answers I found all use a different order for the arguments. They use `ossutil cp video oss://testbucket -r` – Mark Henderson Jan 09 '20 at 08:59

3 Answers3

1

Be aware of that [/] in the end of source dir.

Try this:

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

Refer: https://github.com/aliyun/ossutil/issues/45#issuecomment-448818209

Kishan
  • 111
  • 3
0

try this ossutil cp -r video/ oss://bucket testbucket

Refer: https://help.aliyun.com/document_detail/50452.html?spm=a2c4g.11186623.3.3.1e5751a1SrXLBo

lucein
  • 16
  • 1
0

This worked for me.

Note: -r has to be at the end.

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