Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start-AzureStorageBlobCopy vs AzCopy: which one takes lesser time

I need to move vhds from one subscription to other. I would like to know which one is better option for the same: Start-AzureStorageBlobCopy or AzCopy?

Which one takes lesser time ?

like image 944
Aatif Akhter Avatar asked Apr 26 '15 18:04

Aatif Akhter


People also ask

How do you make AzCopy faster?

You can improve performance by reducing the number of log entries that AzCopy creates as it completes an operation. By default, AzCopy logs all activity related to an operation. To achieve optimal performance, consider setting the log-level parameter of your copy, sync, or remove command to ERROR .

Is AzCopy asynchronous?

jeffreykey commented on Jul 3, 2020. This page states that AzCopy runs synchronously but other (more?) pages seem to indicate that it's async.

What is the use of AzCopy?

AzCopy is a command-line utility that you can use to copy blobs or files to or from a storage account. This article helps you download AzCopy, connect to your storage account, and then transfer data.


2 Answers

Both of them would take the same time as all they do is initiate Async Server-Side Blob Copy. They just tell the service to start copying blob from source to destination. The actual copy operation is performed by Azure Blob Storage Service. The time it would take to copy the blob would depend on a number of factors including but not limited to:

  • Source & destination location.
  • Size of the source blob.
  • Load on storage service.
like image 134
Gaurav Mantri Avatar answered Nov 15 '22 17:11

Gaurav Mantri


Running AzCopy without specifying the option /SyncCopy and running PowerShell command Start-AzureStorageBlobCopy should take the same duration, because they both use server side asynchronous copy.

If you'd like to copy blobs across regions, you'd better consider specifying the option /SyncCopy while executing AzCopy in order to achieve a consistent speed because the asynchronous copying of data will run in the background of servers that being said you might see inconsistent copying speed among your “copying” operations.

If /SyncCopy option is specified, AzCopy will download the content to memory first, and then upload content back to Azure Storage. In order to achieve better performance of /SyncCopy, you are supposed to run AzCopy in the VM whose region is the same as source storage account. Besides that, the VM size (which decides bandwidth and CPU core number) will probably impact the copying performance as well.

For further information, please refer to Getting Started with the AzCopy Command-Line Utility

like image 32
Zhaoxing Lu Avatar answered Nov 15 '22 19:11

Zhaoxing Lu