다음을 통해 공유


Announcing AzCopy on Linux Preview

Today we are pleased to announce the preview version of the AzCopy on Linux with redesigned command-line interface that adopts POSIX parameter conventions. AzCopy is a command-line utility designed for copying large amounts of data to, and from Azure Blob, and File storage using simple commands with optimal performance. AzCopy is now built with .NET Core which supports both Windows and Linux platforms. AzCopy also takes a dependency on the Data Movement Library which is built with .NET Core enabling many of the capabilities of the Data Movement Library in AzCopy!

Install and run AzCopy on Linux

  1. Install .NET Core on Linux
  2. Download and extract the tar archive for AzCopy (version 6.0.0-netcorepreview)
 wget -O azcopy.tar.gz https://aka.ms/downloadazcopyprlinux
tar -xf azcopy.tar.gz
  1. Install and run azcopy
 sudo ./install.sh
azcopy

If you do not have superuser privileges, alternatively you can also run AzCopy by changing to azcopy directory and then running ./azcopy.

What is supported?

  • Feature parity with AzCopy on Windows (5.2) for Blob and File scenarios
    • Parallel upload and downloads
    • Built-in retry mechanism
    • Resume, or restart from a failed transfer session
    • And many other features highlighted in the AzCopy guide

What is not supported?

  • Azure Storage Table service is not supported in AzCopy on Linux

Samples

It is as simple as the legacy AzCopy, with command line options that follow POSIX conventions. Watch the following sample where I upload a directory of 100GB in size. It is simple!

AzCopy on Linux

To learn more about all the command line options, issue 'azcopy --help' command.

Here are a few other samples:

  1. Upload VHD files to Azure Storage
 azcopy --source /mnt --include "*.vhd" --destination "https://myaccount.blob.core.windows.net/mycontainer?sv=2016-05-31&ss=bfqt&srt=sco&sp=rwdlacup&se=2017-05-10T21:45:18Z&st=2017-05-09T13:45:18Z&spr=https,http&sig=kQ42XrayIifuE4SGYaAy6COHoIanP7H9Qi3R0KqHs7M%3D"
  1. Download a container using Storage Account Key
 azcopy --recursive --source https://myaccount.blob.core.windows.net/mycontainer --source-key "lYZbbIHTePy2Co…..==" --destination /mnt
  1. Synchronous copy across Storage accounts
 azcopy --source https://ocvpwd5f77vcqsalinuxvm.blob.core.windows.net/mycontainer --source-key "lXHqgIHTePy2Co….==" --destination https://testaccountseguler.blob.core.windows.net/mycontainer --dest-key "uT8nw5…. ==" –-sync-copy

AzCopy on Windows

AzCopy on Windows developed with .NET Framework will continue to be released and documented here. AzCopy on Windows offers DOS command-line parameters that Windows users are familiar with.

Feedback

AzCopy on Linux is currently in preview, and we will make improvements as we hear from our users. So, if you have any comments or issues, please leave a comment below.