在 Azure Blob 存储上下载容器

Download container on Azure Blob Storage

有没有办法从 Azure Blob 存储下载容器及其所有内容?

我使用 CloudBerry Explorer for Azure Blob Storage 来管理我的容器、文件和文件夹。

我有一个包含超过 100GB 数据的容器,我想下载它,但找不到下载容器的方法,只能下载单个文件。

如果需要,您可以使用 AzCopy 工具下载整个 blob 容器。假设您安装了最新版本的 Azure SDK,您可以在 C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy 文件夹中找到此工具。

您可以尝试以下命令:

AzCopy /Source:"https://[accountname].blob.core.windows.net/[containername]/" /Dest:"[folder path e.g. D:\temp\" /SourceKey:"[account key]" /S

用适当的值替换[帐户名]、[容器名]、[文件夹路径]、[帐户密钥]。

从 Azure Blob 存储下载容器(所有文件)

az login

az account set --subscription <Sub ID>

az storage blob download-batch --account-name <storageaccountname> --source <containername> --destination <C:\Users\Downloads\***>

一次删除所有文件

az storage blob delete-batch --account-name <storageaccountname> --source <containername>