How to download a subdirectory from azure blob storage using blobxfer

I am using ubuntu 64bit 14.04. How can I use blobxfer to download a subdirectory from the Azure blob repository to my local computer. Let's say I have a storage account by name MY_STORAGE_ACCOUNT, a container by name, MY_CONTAINERand the following contents inside the container.

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

I want to download only a subdirectory directory3.

I have a SAS key that has access and can download individual files, however wildcards do not work in this. My team looks lower

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

and I get the following error, which probably says that she cannot understand the pattern in the command.

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

, :

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

, SAS, , SAS List.

+3

Source: https://habr.com/ru/post/1670994/


All Articles