This article describes how to back up to a network share hosted in Microsoft Azure Storage.
Azure Storage cannot be used as backup location for archives, if you plan to perform bare-metal recovery from them. In other words, it should be used as storage for file/folder backups only.
Step 1 - Create a share in Azure Storage
- Sign in to the Azure portal.
- On the navigation menu, click Storage accounts or Storage accounts (classic).
- Choose your storage account.
- Choose Files service.
- Click File shares and follow the link to create your first file share.
- Fill in the file share name and the size of the file share (up to 5120 GB) to create your first file share. Once the file share has been created, you can mount it from any file system that supports SMB 2.1 or SMB 3.0.
Click here for detailed instructions.
Step 2 - Configure backup plan in Acronis Backup
All instructions must be performed in the exact same order as described below.
- On the machine you want to back up, create a symbolic link to the Azure share:
- Open Notepad and create a document with this content:
net use * /delete /yes
net use \\<account.file.core.windows.net\share> /u:<Azure account> <storage account access key>
mklink /d "C:\backups" \\account.file.core.windows.net\share
where <account.file.core.windows.net\share> is your Azure file share, <Azure account> is your Azure account and <storage account access key> is the access key (password) to this account. “C:\backups” is the path on local drive the share will be linked to (you can keep it as-is).
You can copy the net use line from your file share settings in Azure portal:
- Save the file as a .bat file.
- Add this script to computer startup scripts:
- Open Local Group Policy Editor: Start -> Search -> gpedit.msc.
- Navigate to Local Group Policy -> Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown).
- Double-click on Startup.
- Choose Add:
- Click Browse and select the script created in the previous step.
- Save changes and reboot the computer. Now your Azure file share will be linked to the folder you have specified in the script (C:\Backups in this example) and thus can be accessed by this path.
- Access to the symbolic link is limited to Local System, therefore you need to change Acronis Managed Machine Service user to Local System:
- Open Windows Services: Start -> Search -> services.msc.
- Locate Acronis Managed Machine Service.
- Right-click the service and select to log on as Local System account on the Log On tab:
- Restart the service.
- Create a backup plan and specify your symlink (C:\Backups in this example) in Where to back up:
Now you can back up to your Microsoft Azure Storage.