I want to copy Azure blob content to local server
https://<blob>/prod/backup/node1 -> f:backupcluster
https://<blob>/prod/backup/node2/<RandomFolderName>/forests/* -> f:backupclusterforests
https://<blob>/prod/backup/node3/<RandomFolderName>/forests/* -> f:backupclusterforests
I want final folder structure on server to be:
f:backupcluster
f:backupclusterforests<forest2-content-folder>
f:backupclusterforests<forest3-content-folder>
2
Answers
I end up creating a PowerShell script to execute post AzCopy task to restructure folders
You can achieve this by using
Azcopy
tool to copy azure blob content to local server with specific structure.Here is the command:
Command and Output:
In Cluster folder:
In forests folder:
Reference:
azcopy copy | Microsoft Learn