Skip to content

Commit 306aa94

Browse files
authored
Merge pull request #115490 from dcurwin/restore-individual-files-may2020
Check machine before restore files from VM
2 parents b7ff72c + 2253aff commit 306aa94

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

articles/backup/backup-azure-restore-files-from-vm.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ To restore files or folders from the recovery point, go to the virtual machine a
4747

4848
![Generated password](./media/backup-azure-restore-files-from-vm/generated-pswd.png)
4949

50-
7. From the download location (usually the Downloads folder), right-click the executable or script and run it with Administrator credentials. When prompted, type the password or paste the password from memory, and press **Enter**. Once the valid password is entered, the script connects to the recovery point.
50+
7. Make sure [you have the right machine](#selecting-the-right-machine-to-run-the-script) to execute the script. If the right machine is the same machine where you downloaded the script, then you can continue to the download section. From the download location (usually the *Downloads* folder), right-click the executable or script and run it with Administrator credentials. When prompted, type the password or paste the password from memory, and press **Enter**. Once the valid password is entered, the script connects to the recovery point.
5151

5252
![File recovery menu](./media/backup-azure-restore-files-from-vm/executable-output.png)
5353

@@ -79,6 +79,23 @@ Once the disks have been unmounted, you receive a message. It may take a few min
7979

8080
In Linux, after the connection to the recovery point is severed, the OS doesn't remove the corresponding mount paths automatically. The mount paths exist as "orphan" volumes and are visible, but throw an error when you access/write the files. They can be manually removed. The script, when run, identifies any such volumes existing from any previous recovery points and cleans them up upon consent.
8181

82+
## Selecting the right machine to run the script
83+
84+
If the script is successfully downloaded, then the next step is to verify whether the machine on which you plan to execute the script is the right machine. Following are the requirements to be fulfilled on the machine.
85+
86+
### Original backed up machine versus another machine
87+
88+
1. If the backed-up machine is a large disk VM - that is, the number of disks is greater than 16 disks or each disk is greater than 4 TB, then the script **must be executed on another machine** and [these requirements](#file-recovery-from-virtual-machine-backups-having-large-disks) have to be met.
89+
1. Even if the backed-up machine isn't a large disk VM, in [these scenarios](#special-configurations) the script can't be run on the same backed-up VM.
90+
91+
### OS requirements on the machine
92+
93+
The machine where the script needs to be executed must meet [these OS requirements](#system-requirements).
94+
95+
### Access requirements for the machine
96+
97+
The machine where the script needs to be executed must meet [these access requirements](#access-requirements).
98+
8299
## Special configurations
83100

84101
### Dynamic disks
@@ -212,8 +229,6 @@ For Linux, the script requires 'open-iscsi' and 'lshw' components to connect to
212229
213230
The access to `download.microsoft.com` is required to download components used to build a secure channel between the machine where the script is run and the data in the recovery point.
214231
215-
You can run the script on any machine that has the same (or compatible) operating system as the backed-up VM. See the [Compatible OS table](backup-azure-restore-files-from-vm.md#system-requirements) for compatible operating systems. If the protected Azure virtual machine uses Windows Storage Spaces (for Windows Azure VMs) or LVM/RAID Arrays (for Linux VMs), you can't run the executable or script on the same virtual machine. Instead, run the executable or script on any other machine with a compatible operating system.
216-
217232
## File recovery from Virtual machine backups having large disks
218233
219234
This section explains how to perform file recovery from backups of Azure Virtual machines with more than 16 disks and each disk size is greater than 32 TB.
@@ -240,7 +255,7 @@ Since file recovery process attaches all disks from the backup, when large numbe
240255
- In the file /etc/iscsi/iscsid.conf, change the setting from:
241256
- node.conn[0].timeo.noop_out_timeout = 5 to node.conn[0].timeo.noop_out_timeout = 30
242257
- After making the change above, run the script again. With these changes, it's highly probable that the file recovery will succeed.
243-
- Each time user downloads a script, Azure Backup initiates the process of preparing the recovery point for download. With large disks, this process will take considerable time. If there are successive bursts of requests, the target preparation will go into a download spiral. Therefore, it's recommended to download a script from Portal/Powershell/CLI, wait for 20-30 minutes (a heuristic) and then run it. By this time, the target is expected to be ready for connection from script.
258+
- Each time user downloads a script, Azure Backup initiates the process of preparing the recovery point for download. With large disks, this process will take considerable time. If there are successive bursts of requests, the target preparation will go into a download spiral. Therefore, it's recommended to download a script from Portal/PowerShell/CLI, wait for 20-30 minutes (a heuristic) and then run it. By this time, the target is expected to be ready for connection from script.
244259
- After file recovery, make sure you go back to the portal and click **Unmount disks** for recovery points where you weren't able to mount volumes. Essentially, this step will clean any existing processes/sessions and increase the chance of recovery.
245260
246261
## Troubleshooting
@@ -298,6 +313,6 @@ The script gives read-only access to a recovery point and is valid for only 12 h
298313
## Next steps
299314
300315
- For any problems while restoring files, refer to the [Troubleshooting](#troubleshooting) section
301-
- Learn how to [restore files via Powershell](https://docs.microsoft.com/azure/backup/backup-azure-vms-automation#restore-files-from-an-azure-vm-backup)
316+
- Learn how to [restore files via PowerShell](https://docs.microsoft.com/azure/backup/backup-azure-vms-automation#restore-files-from-an-azure-vm-backup)
302317
- Learn how to [restore files via Azure CLI](https://docs.microsoft.com/azure/backup/tutorial-restore-files)
303318
- After VM is restored, learn how to [manage backups](https://docs.microsoft.com/azure/backup/backup-azure-manage-vms)

articles/backup/tutorial-restore-files.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ To restore your files, Azure Backup provides a script to run on your VM that con
113113
114114
With the recovery script copied to your VM, you can now connect the recovery point and restore files.
115115
116+
>[!NOTE]
117+
> Check [here](backup-azure-restore-files-from-vm.md#selecting-the-right-machine-to-run-the-script) to see if you can run the script on your VM before continuing.
118+
116119
1. Connect to your VM with SSH. Replace *publicIpAddress* with the public IP address of your VM as follows:
117120
118121
```bash

0 commit comments

Comments
 (0)