Start-AzureStorageBlobCopy vs AzCopy: which one takes lesser time

后端 未结 5 673
不知归路
不知归路 2021-01-04 23:19

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

5条回答
  •  醉酒成梦
    2021-01-04 23:51

    They don't take the same time.

    I've tried to copy from one account to another and have a huge difference.

    Start-AzureStorageBlobCopy -SrcBlob $_.Name -SrcContainer $Container -Context $ContextSrc -DestContainer $Container -DestBlob $_.Name -DestContext $ContextDst --Verbose
    

    This takes about 2.5 hours.

    & .\AzCopy.exe /Source:https://$StorageAccountNameSrc.blob.core.windows.net/$Container /Dest:https://$StorageAccountNameDst.blob.core.windows.net/$Container /SourceKey:$StorageAccountKeySrc /DestKey:$StorageAccountKeyDst /S
    

    This takes several minutes.

    I have about 600 Mb and about 7000 files here.

    Elapsed time:            00.00:03:41
    Finished 44 of total 44 file(s).
    [2017/06/22 17:05:35] Transfer summary:
    -----------------
    Total files transferred: 44
    Transfer successfully:   44
    Transfer skipped:        0
    Transfer failed:         0
    Elapsed time:            00.00:00:08
    Finished 345 of total 345 file(s).
    [2017/06/22 17:06:07] Transfer summary:
    -----------------
    Total files transferred: 345
    Transfer successfully:   345
    Transfer skipped:        0
    Transfer failed:         0
    Elapsed time:            00.00:00:31
    

    Do anyone know why it's so different?

提交回复
热议问题