question

CplusSupport-9946 avatar image
0 Votes"
CplusSupport-9946 asked SumanthMarigowda-MSFT commented

AZCopy - without folder structure

I will start off with saying that I am not a developer.

I have a folder structure that consists of sub folders named by date and each folder contains multiple .wav and .mp3 files with unique file names. I am trying to copy these files on a daily basis from our file server to a Blob storage, but only want a flat file structure on the blob storage and not all the sub folders. I have taken the "--recursive" out but I cannot find the syntax that would get azcopy to loop through the sub folders in the directory. Is this possible with azcopy:

azcopy copy "sourcefolders*" "blob storage with asa token" --include-pattern ".mp3;.wav" --overwrite=false

The connection works fine, but just cannot get the azcopy to loop through the large number of sub folders. I have tried the /s but then get an error about the incorrect number of arguments.

azure-blob-storage
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered SumanthMarigowda-MSFT commented

@CplusSupport-9946 Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

Unfortunately no such feature exists in AzCopy.

We would like to work on this feature going forward, please fill the required information https://github.com/Azure/azure-storage-azcopy/issues/new We will work with the product group on the scenario

Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.


Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.