how to copy storage account's data from one subscription to another

Jaanvi Dhariwal 40 Reputation points
2023-05-17T10:30:06.3966667+00:00

I have 5 containers and in them few folders and sub folders are present which eventually have the files, How to address everything for az copy copy, I want everything in my subscription's storage account, how to do this.

Screenshot 2023-05-17 155857.png

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,930 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vinodh247 13,536 Reputation points
    2023-05-17T10:49:44.02+00:00

    Hi

    Thanks for reaching out to Microsoft Q&A.

    You have multiple containers and files in a parent container which has to be copied wholly using azcopy., pls confirm if my understanding is correct. If yes use like below with "recursive" flag.

    If this is not you are looking for, pls elaborate your ask.

    azcopy copy "https://source_storage.blob.core.windows.net/source_container/source_SAS_Key" "https://target_storage.blob.core.windows.net/target_container/target_SAS_Key" --recursive=true

    Please Upvote and Accept as answer if the reply was helpful, this will be helpful to other community members.

    0 comments No comments

  2. Sumarigo-MSFT 45,486 Reputation points Microsoft Employee
    2023-05-19T09:48:37.63+00:00

    @Jaanvi Dhariwal Adding more information to the above response!

    You can copy blobs, directories, and containers between storage accounts by using the AzCopy v10 command-line utility.

    To see examples for other types of tasks such as uploading files, downloading blobs, and synchronizing with Blob storage, see the links presented in the Next Steps section of this article.

    AzCopy uses server-to-server APIs, so data is copied directly between storage servers. These copy operations don't use the network bandwidth of your computer.
    Copy blobs between Azure storage accounts by using AzCopy

    Transfer data with AzCopy and file storage

    AzCopy uses server to server APIs when copying data between storage accounts and should not use the local bandwidth of your computer. It is currently the fastest way to migrate data between accounts. To increase performance, you can try decreasing the logging level, separating the copy into multiple operations, and turn off length checking. See Optimize for large numbers of small files for more information.

    Learn how to use the Azure CLI, AzCopy, and .NET code to copy blobs between storage accounts. Copy blobs between Azure Storage accounts from the command line or by using code

    This article provides an overview of some of the common Azure data transfer solutions. The article also links out to recommended options depending on the network bandwidth in your environment and the size of the data you intend to transfer. Choose an Azure solution for data transfer

    Please let us know if you have any further queries. I’m happy to assist you further.


    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.

    0 comments No comments