0
votes

We're using blob storage in our MVC app to store thousands of photos across hundreds of containers. We have a storage account for production and a storage account for development. While in development, we write all photos to the development storage account.

Periodically we'd like to completely clear out our development storage account and copy everything from our development storage account. This will include hundreds of containers and files within those containers.

I'm aware of AzCopy but there doesn't seem to be a way or easy way to do what we want to do. For example, I don't want to have to copy all files container by container etc.

Is there a way to do what we want?

1
is this what you need? msdn.microsoft.com/en-us/library/dn806401.aspx. you can copy across subsciptions and regions without downloading any of ituser844705
I don't think so, but thanks.Randy Minder
I meant these really. github.com/Azure/azure-sdk-tools/wiki/… I've used them to duplicate copies of live media dumps for dev purposes..or do you mean copy them to a local drive?user844705

1 Answers

3
votes

You will have to write a tiny CopyBlob program that takes the constraints and calls AzCopy with required params to copy over required blobs.

[Update]

You can use Azure Storage Library and StartCopyFromBlob method to copy blob. If you are not using .Net, you can find equivalent in azure storage library written in other languages as well.

This copy blob is asynchronous in nature meaning 'without having to retrieve the content', saves cost and time. More details on Azure Storage Blog.

This answer shows how to copy blob, just for completion.