简体   繁体   English

使用 azcopy 下载 azure 中的文件

[英]Download the files in azure using azcopy

I am trying to download the files from the blod container in azure...But its showing Error: Unknowncommand我正在尝试从 azure 中的blod容器下载文件......但它显示错误:未知命令

Cmd:命令:

AzCopy https://forecast.blob.core.windows.net/test C:\Users\Shwettha\Downloads\azcopyfiles /sourceKey:sp=rl&st=2020-07-17T12:17:25Z&se=2020-12-31T21:30:00Z&sv=2019-10-10&sr=c&sig=z9b0X4vT6DGy6zOGNffM5FVaK5jNGOTeFFWD /S /V:C:\temp\logs\azcopy.log

error:
Error: unknown command "https://forecast.blob.core.windows.net/test" for "azcopy"

I also tried我也试过

    azcopy cp "https://forecast.blob.core.windows.net/test/apollo?si=Utopus&sv=2019-12-12&sr=c&sig=qHv1ojyG2hrjrq7ZQ%2BMAVZhkpCwrXs1" "utopus/apollo/forecast/dayahead" --recursive

Error: is not recognized as an internal or external command,
operable program or batch file.

Can anyone pls help me...to downlaod or list the files in the blob.任何人都可以帮助我...下载或列出 blob 中的文件。 iam new to azcopy我是 azcopy 的新手

Have tried below command已尝试以下命令

azcopy cp "https://forecast.blob.core.windows.net/test/apollo?si=Utopus&sv=2019-12-12&sr=c&sig=qHv1ojyG2BMAVZhkpCwrXsD" "c:/Users/Shwettha/Downloads/azcopyfiles" --recursive

在此处输入图片说明

It seems that you're trying to copy the contents of directory to local.您似乎正在尝试将目录的内容复制到本地。

Here's something you need to check:以下是您需要检查的内容:

1.the version of your azcopy 1.你的azcopy的版本

2.Open your cmd in your computer, and navigate to the location where the azcopy.exe is. 2.在电脑中打开cmd,导航到azcopy.exe所在的位置。

3.the sastoken you're using, please follow the screenshot below to generate the sastoken(In azure portal): 3.您正在使用的sastoken,请按照下面的截图生成sastoken(在azure portal中):

在此处输入图片说明

4.suppose you have a blob container named test8 , and the container has a directory named ccc . 4.假设您有一个名为test8的 blob 容器,并且该容器有一个名为ccc的目录。 now if you want to download all the blobs inside the directory ccc , please use the command below:现在,如果您想下载ccc目录中的所有 blob,请使用以下命令:

azcopy cp "https://yy1.blob.core.windows.net/test8/ccc?your_sastoken" "d:\bbb" --recursive

Here is the screenshot:这是屏幕截图:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM