[英]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.