How to use Azure Files as a backup folder

How to use Azure Files as a backup folder

Using Azure Files is a great way to back up your files as it was just another folder on your computer. This is similar to other services like Dropbox or Google Drive where you have online-only files as an option.

To do this create an account in Microsoft Azure if you don't have one, then go to the Azure Portal. Once there go to the Storage Accounts section and create a new Azure Storage.

The following image shows the minimum information needed to create a Storage Account. In this case, I set the Performance option as "Standard" as I do not need the more expensive options. I set the "Locally-redundant storage (LRS)" for redundancy, but you can choose other types of redundancy needed for your situation.

Once the Storage Account is created, go to the "File Shares" section.

Once in the "File Shares" section create a new File Share, in this window you have the option to select the Tier (Transaction Optimized, Hot and Cool), I selected the Hot Tier because is the most cost-effective of the options.

Once the File Share is created, press the "Connect" option and a side window will appear with the PowerShell script to run and create a Network connection to the File Share.

Copy the script and open PowerShell on your computer.

Paste the code in the terminal and it will run automatically. There will be a pause when the script is running, just press the Enter key and it will continue.

After running the script you will see in "My Computer" in the Network Locations section the connection to the File Share.

And that's it, you can now copy and paste any file to Azure File Share using this connection.

One important note, this only works from Windows Server 2012 and Windows 8 or later. It could work in Windows 7 but without encryption which is not recommended at all. For that, you would have to disable the "Secure transfer required" option in the Azure Storage Configuration.

Using The Azure File Share as backup

I've created a sample folder with several files which I want to backup to the Azure File Share. I can manually copy and paste the files, but if I want to automate this I can use Robocopy to transfer the files.

Notice in the image below that the destination folder is the drive letter z: which is mapped to the Azure File Share. This will copy all the files in the "TestFolder" to the root folder of the share, and adjust to your needs.

Once the process of copying files is done, check the Azure File Share in My Computer and the Azure Portal and you will see the uploaded files.

Conclusion

Azure File Share is an easy way to store files or entire directories depending on your situation. If your application requires storing files in a folder, this is a way to store them safely in the cloud without extensive modifications to the existing infrastructure.

What is Azure Files?

Azure Files pricing

Did you find this article valuable?

Support Andres Lugo by becoming a sponsor. Any amount is appreciated!