AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

Map root folder, or how to mirror folder structure locally

Open jsuddsjr opened this issue 3 years ago • 1 comments

Preflight Checklist

Problem

I'd like to create a mirror of the VC structure on my local drive.

Desired Solution

In order to compile scripts locally, the tools normally download the files from the VC. However, if you've created a local folder structure that mirrors the VC, you can compile more quickly. I'd like to map the root storage account to a folder on disk, and as I download files, they would be copied to the same folder structure as the VC.

Alternatives and Workarounds

I'm currently recreating the folder structure by hand.

Additional Context

Folder copy already does this; however, as many of the folders contain very large files, I would quickly run out of space. An alternative approach would be to apply a filter to the folder copy, so that it would skip over large files, or copy only allowed extensions.

Related

  • #5873
  • #5259

jsuddsjr avatar Aug 05 '22 22:08 jsuddsjr

@jsuddsjr AzCopy has two flags named "--include-pattern" (wildcard) and "--include-regex" (or equivalent flags for exclusion) to let you filter at the root of your directory on what files to transfer. We haven't integrated them yet. You can construct an AzCopy command and manually execute it to do the work. Filtering by file size is not supported at the moment.

JasonYeMSFT avatar Aug 05 '22 23:08 JasonYeMSFT

@jsuddsjr to be clear are you using blob containers? Because if you are instead using file shares, those can be mounted as drives over SMB. So something for you to consider?

Also, if you need additional help with constructing AzCopy commands, we would recommend working directly with the AzCopy team here: https://github.com/Azure/azure-storage-azcopy/issues

MRayermannMSFT avatar Aug 15 '22 17:08 MRayermannMSFT

Closing due to lack of response. If you are still encountering this problem, we recommend opening a support ticket via the Azure portal alternatively you can open a new issue here.

MRayermannMSFT avatar Sep 07 '22 17:09 MRayermannMSFT