Current Migration:
I'm currently in the process of migrating a storage account with 100TB + of data from one subscription to another. The legacy storage account has a very distinct folder structure:
- ContainerName//{date}/filename.txt
Examples:
- ContainerName//20140327/readme1.txt
- ContainerName//20140328/readme2.txt
I don't know why they decided to use an empty folder directory // to house this data(before my time). There is a virtual directory on every date from 2014 up until present. Due to the sheer size of this migration, I would like to break it up into multiple azcopy jobs. For example migration 1 would migrate all data from 2014, migration 2 would migrate all data from 2015 and so on....
Problem:
Is there a way to perform an AzCopy based on a blob name prefix, since azure storage does not use real folders, rather it uses virtual folders. For example only migrate data with the following prefix: containerName//2014*
What I have tried:
I see that the most recent version of AzCopy now has --include-pattern command. I have tried multiple ways of doing the following:
azcopy.exe copy $srcContainerUrl $destContainerUrl --recursive --include-pattern "//2014*"
but it never seems to be able to find the files I am trying to migrate