Azure – rsync / robocopy /MIR to azure

azurerobocopy

We are looking to do two things with azure for off site backup:

1) We need to mirror local dir struct up to azure, like robocopy /MIR command

2) We need to purge files older than ____ days from azure storage.

What is the direct path to this place?

Best Answer

There is an official Microsoft "Robocopy like command line tool" to copy data from/to Azure Blobs, it's called Azcopy, latest version is available here : http://aka.ms/downloadazcopy

Unfortunately, Azure Blob Storage doesn't allow the creation of a dir structure (there is only one level available called Container) so it's not a good solution for you.

So In your case, I would rather recommend to use Azure File (An SMB 3.0 File Service) and connect a Windows machine (8 and later, 2012 and later) to it. Network Trafic will be encrypted (one of coolest new features of SMB 3.0 : SMB Encryption), Authentication is done using Azure Storage Account name & key.

Few steps to configure :

  1. create a Azure Storage Account

  2. Create an Azure File Share in this Azure Storage Account

  3. On a Windows Server (2012 or later) or Windows Client (8 or later), mount the Azure File Share as a network drive

  4. Use robocopy to copy your data

More information : How to use Azure File https://azure.microsoft.com/en-gb/documentation/articles/storage-dotnet-how-to-use-files/