To perform this procedure, you must install the package iSCSI initiator utils.
Note: This procedure is not supported for software RAID (mdraid) configurations. To recover files from a VM with these configurations, you must restore the entire VM. See Restoring Hyper-V virtual machines.
1 Create a disk image. See To create a disk image for Hyper-V file-level recovery for details.
2 Log in to the Linux machine to which files will be restored.
This can be the VM from which files are to be restored, or any other Linux machine.
3 Open the terminal and log in as root user.
4 Change to the /tmp directory:
cd /tmp
5 Run the following command to copy the iscsi_flr script from the backup system:
wget http://<system IP>/iscsi_flr
6 Once the script is downloaded, add execute permission:
chmod +x iscsi_flr
7 Run the script as follows:
./iscsi_flr mount
8 Enter information at the system prompts. An example for a VM called linux whose backup system IP is 192.168.237.230 is given here:
Unitrends Hyper-V File-Level Recovery
<…intro text…>
-------------------------
Enter address of the Unitrends backup appliance: 192.168.237.230
Enter mount point directory: /tmp/<directory>/
Performing iSCSI target discovery from 192.168.237.230.
1: 192.168.237.230:3260,1 iqn.1995-11.com.unitrends.dpu:flr.4cdf.linux
2. 192.168.237.230:3260,1 iqn.1995-11.com.unitrends.dpu:flr.aecb.linux2
Choose a session to restore from: 1
Logging in to iSCSI target iqn.1995-11.com.unitrends.dpu:flr.4cdf.linux at 192.168.237.230:3260,1
<…etc…>
9 Use Linux tools, such as cp, to copy the files/folders to the desired location.
10 Once data has been restored, it is important to disconnect the share by running this command from the /tmp directory:
./iscsi_flr unmount
11 On the backup system, tear down the restore image using one of the following procedures:
Warning: Proceeding with the tear-down while the restore target is still connected causes undesired results and errors on the target machine.
• If the recovery image screen is still open in the backup system, select the image in the recovery images area, and click Tear Down. Click Yes to confirm that you would like to proceed. The image is removed from the share.
• If you have closed the recovery image screen, follow the instructions described in To view or tear down Hyper-V restore images.
Note: Because system resources are used to maintain the image, it is important to tear it down immediately after performing the restore to ensure optimal performance of your appliance. When an image has been available for three days, the appliance sends an alert reminding you to tear it down.