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 in your linux environment. Please visit https://www.microsoft.com/net/core for installation instructions.
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 and create a dotnet project.
azurecli git clone https://github.com/Azure-Samples/storage-blob-coreclr-linux-getting-started-w-data-movement-library/ cd Backup2Azure dotnet new
- Build and run the sample
azurecli dotnet build dotnet run <first argument: backup/restore> <second argument: /home/sampledirectory> dotnet run backup /home/sampledirectory dotnet run restore /home/sampledirectory