Azure Storage Data Movement Library on CoreCLR for Linux
Azure Storage Data Movement Library on CoreCLR targetting Linux platforms - Demonstrates how to copy and download large directory of files to/from Azure Storage Blob service.
Note: If you don't have a Microsoft Azure subscription you can get a FREE trial account here
Running this sample
This sample can only be run using an Azure Storage Account. When the sample is run, the user will be be prompted to enter an Azure Storage account name and a service/account SAS key that has read and write access to the blob service.
You need to install the .NET Core 1.1 in your linux environment. Please visit https://www.microsoft.com/net/core for installation instructions. If you have a different version than .NET Core 1.1, be sure to update project.json file for the .NET Core dependency version.
To run the sample you need to supplement two arguments in the Linux commandline
- First argument is the option to backup or restore data. Simply provide 'backup' or 'restore' keyword
- Local directory to be backed up or restored to.
- Clone this repository.
azurecli git clone https://github.com/Azure-Samples/storage-blob-coreclr-linux-getting-started-w-data-movement-library/
- Build and run the sample
azurecli dotnet restore dotnet build dotnet run <first argument: backup/restore> <second argument: /home/sampledirectory> dotnet run backup /home/sampledirectory dotnet run restore /home/sampledirectory