简体   繁体   English

如何使用blobxfer从azure blob存储下载子目录

[英]how to download a sub directory from azure blob storage using blobxfer

I am using ubuntu 64bit 14.04. 我使用的是ubuntu 64bit 14.04。 How can I use blobxfer to download a sub directory from Azure blob storage to my local machine . 如何使用blobxfer将子目录从Azure blob存储下载到本地计算机。 Say I have a storage account by name MY_STORAGE_ACCOUNT ,container by name MY_CONTAINER and following contents inside container. 说我有名字的存储帐户MY_STORAGE_ACCOUNT ,容器的名字MY_CONTAINER和内部容器以下内容。

directory1/directory2/directory3/file1 
directory1/directory2/directory3/file2
directory1/directory2/directory3/file3
..
..
directory1/directory2/directory3/fileN

I want to download the sub directory directory3 only . 我要下载的子目录directory3而已。

I have a SAS key which has access and can download individual files however wildcards aren't working in that . 我有一个SAS密钥,可以访问并可以下载单个文件,但通配符不起作用。 My command looks like below 我的命令如下所示

blobxfer --saskey "$MYSASKEY" MY_STORAGE_ACCOUNT MY_CONTAINER "$LOCAL_DIR"  --download --remoteresource "directory1/directory2/directory3/*

and I am getting the following error which probably says it can't understand wildcard in the command . 我收到以下错误,可能说它无法理解命令中的通配符。

requests.exceptions.HTTPError: 404 Client Error: The specified blob does not exist.

Please try this: 请试试这个:

blobxfer --saskey "$MYSASKEY" MY_STORAGE_ACCOUNT MY_CONTAINER "$LOCAL_DIR"  --download --remoteresource . --include "directory1/directory2/directory3/*"

Also when you using SAS key, please make sure that List permission is included in SAS. 此外,当您使用SAS密钥时,请确保SAS中包含List权限。

暂无
暂无

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

相关问题 如何将文件从本地计算机传输到Azure容器内的虚拟文件夹(使用blobxfer) - How to transfer files from local machine to virtual folders within an Azure container (using blobxfer) 如何使用位于 azure webapp 中的 .sh 文件将多个文件从本地存储上传到 azure blob 存储 - How to upload multiple files from local storage to the azure blob storage using .sh file that located in azure webapp 如何从 azure 云连接到 linux 服务器并上传到 BLOB 存储? - how to connect to linux server from azure cloud and upload to BLOB storage? 使用 bash 脚本从 Azure Blob 存储读取 JSON 文件并写回 Blob 存储中的另一个文件 - Read JSON file from Azure Blob Storage using bash script and write back to another file in blob storage 从Azure vm(linux)发送数据到Azure blob存储容器 - Send data from Azure vm (linux) to Azure blob storage container 从Linux上的Azure Blob存储中上载多个文件 - Upload multiple files in Azure Blob Storage from Linux Azcopy 无法使用 sas 令牌从 azure 文件存储下载文件? - Azcopy fails to download file from azure file storage using sas token? azure blob存储是否支持http2? - Does azure blob storage support http2? 用于Linux机器上传/下载Azure存储数据的天蓝色命令行工具 - azure command line tool for linux machine to upload/download data to/from Azure Storage 如何使用 wget 下载整个目录和子目录? - How to download an entire directory and subdirectories using wget?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM