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?

  • @LMFAO_A_JOKE robocopy can copy to azure? Jan 12 '16 at 2:39
  • I may have missed that part. I was thinking \\server\share but see if this helps any Azure Storage Backup. You have NO UNC \\server\share I assume, correct? Here's the Azure Backup - Microsoft Jan 12 '16 at 2:42
  • 2
    Okay a couple more things to provide but it appears the AzCopy is the Robocopy equivalent for Azure and there are also PowerShell command CmdLets too Article 1 and here's Article 2. . . I would test these routes myself probably but I'm not using Azure and I appologize for not seeing that initially in your question. Maybe those will help you get started Jan 12 '16 at 2:53
  • 1
    So 10 hours later, the below answer is basically the exact same thing I recommended initially if you have \\server\share setup. Here's a TechNet blog that talks about setting up an Azure File Share as well. If this is the case, use Robocopy for that part and forfiles for the recursive cleanup of all files older than X number of days. You'd use forfiles with a mapped drive or pushd though and not UNC path. Jan 12 '16 at 13:16
  • Vote for this feature: feedback.azure.com/forums/217298-storage/suggestions/… Jan 16 '16 at 12:40

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/

  • How to mount the Azure File Share from a remote Windows machine? In Azure, when I click on the "connect" icon of my file share, it reads: "To connect to this file share, run this command from any Windows virtual machine on the same subscription and location" - but my Windows machine is not in the same location. When I run the net use, I am getting: System error 67: The network name cannot not be found." I wonder if there is a way to enable WebDAV in order to map the file share as a network drive. Apr 7 '16 at 13:20
  • Hi, this is not Webdav but SMB 3.0 so you need to open TCP 445 on the FW/router where is connected your remote Windows Machine (This one must be at least Windows Server 2012 or Windows 8 to support SMB 3). I don't think that Azure File provides Webdav access Apr 8 '16 at 13:40
  • Thanks, understood. Problem is that I might not necessarily be in control of the firewalls where the remote windows machine is. (i.e. delivering a windows desktop client software to customers that needs to access Azure). So I guess WebDAV would be a workaround. Yes, it's not supported out of the box by Azure, but it's a standard protocol that could be enabled in IIS. So, using IIS and configuring the IIS documents root folder to be the Azure file share might work. At least that's my theory. Apr 8 '16 at 13:43

It would also be possible to do with by replicating your storage with the use of an software defined storage solution over iSCSI.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.