【问题标题】:Download container on Azure Blob Storage在 Azure Blob 存储上下载容器
【发布时间】:2015-04-24 23:05:20
【问题描述】:

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

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

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

【问题讨论】:

    标签: azure azure-blob-storage cloudberry


    【解决方案1】:

    从 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>
    

    【讨论】:

      【解决方案2】:

      如果需要,您可以使用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
      

      将 [accountname]、[containername]、[folder path]、[account key] 替换为适当的值。

      【讨论】:

        猜你喜欢
        • 2016-09-01
        • 2012-12-08
        • 2011-02-24
        • 2020-10-13
        • 2019-12-19
        • 2019-09-05
        • 2021-02-17
        • 1970-01-01
        • 2023-03-19
        相关资源
        最近更新 更多