Last Update: Sep 04, 2024 | Published: Mar 10, 2017
In this post, I’m going to show you how you can restore one or a few files from an Azure virtual machine backup without restoring the entire virtual machine, thanks to Azure Backup Instant File Recovery, currently in preview.
In the past, if you wanted to restore an individual file from an Azure virtual machine backup, things got very complicated. You could restore the entire virtual machine, but that’s a slow process, especially if you want to get just one or a few files back from the past. And what if you don’t know when the file was last there or last in a healthy state? You might end up having to do a lot of restores just to find when the file was last available and reliable.
The clues for Instant File Recovery have been in the Azure Portal for a while, but the feature recently arrived for virtual machines. We now have the ability to mount a recovery point, from our on-premises PC, to restore a file from an Azure virtual machine with application consistency. We can browse the file structure as it was when the recovery point was created, find a file or folder, and copy/paste it to wherever we need it.
Note: Veeam FastSCP might prove to be a handy tool to copy the file back to the desired virtual machine in Azure from your on-premises PC.
You can use the new ability to restore individual or sets of files or folders in the Azure Recovery Services vault, even if you started backing up Azure virtual machines before the Instant File Recovery feature was released in February 2017.
Start your recovery by browsing to Backup in the settings of the Azure virtual machine. Click File Recovery (Preview) to start the restoration of a file(s)/folder(s) from the virtual machine.
Click Download Executable to download a tool; this tool will be run on the machine that you want to restore file(s)/folder(s) to.
In the below screenshot you can see:
You can open File Explorer; each of the volumes from the backed up virtual machine are mounted as volumes. In the below screenshot, we can see that the OS volume (C:) is mounted as H: and the data disk (F:) is mounted as G:.
Note that the restore speed will be approximately 1GB per hour, depending on where you are restoring to (bandwidth limitation at your office, for example, if you are restoring to your PC). Microsoft states that if you need to restore more than 10GB, then you should restore the entire virtual machine to an alternative location and extract the files from the temporarily restored machine.
Once you are finished, un-mount the recovery point (or let it time out), delete the tool, and delete the temp files/folders that the tool created when you ran it (where the tool was copied to).