# VMware Virtual Machine Restore Plan

Backup for Windows offers restores of VMware virtual machine backups to different destinations including:

* Restore to vSphere
* Restore to EC2
* Restore to Azure VM
* Restore to Google Cloud Instance
* Restore as virtual disk

This chapter covers the following topics:

* [Create Restore Plan](#create-restore-plan)
* [Edit Restore Plan](#edit-restore-plan)
* [Delete Restore Plan](#delete-restore-plan)

Learn Restore Wizard steps:

* [Plan Name](#plan-name)
* [Select Backup to Restore](#select-backup-to-restore)
* [Restore Point](#select-restore-point)
* [Restore Source](#restore-source)
* [Restore Type](#restore-type)
* [Select Virtual Disks](#select-virtual-disks)
* [Select VMWare Host Server](#select-vmware-host-server)
* [Restore Options](#restore-options)
* [Restore Virtual Machines As](#restore-virtual-machines-as)
* [Schedule](#schedule)
* [Pre / Post Actions](#pre-post-actions)
* [Notification](#notifications-and-logging)
* [Check Network Shares](#check-network-shares)
* Summary

### Create Restore Plan

To create a new restore plan, click the **Restore** icon in the horizontal menu bar.

#### Plan Name

Select whether to run the restore plan once or save the restore configuration for further use.

![](/files/cQfBNq3APQIJoKqYP4AF)

Click **Next**.

#### Select Backup to Restore

Select a backup plan that contains the dataset to restore. Entries are named after backup plans previously created and executed.

![](/files/qt2lJYW8MlNVvysc8VNi)

Click **Next**.

#### Select Restore Point

Select the required restore point for the plan. You can select the latest available restore or select the required one manually from the list.

![](/files/81JeHHoi4HFVDGIiZnmi)

Click **Next**.

#### Restore Source

Select virtual machines to restore from the list.

![](/files/VZFWNGj6uQODggAtxh3k)

If you select multiple VMs, only restore to vShpere is available. To restore to other destinations (AWS EC2, for example), create separate restore plans for separate VMs

Click **Next**.

#### Restore Type

This step displays all possible restore types that are available for backups currently stored in backup storage. Select **VMware Virtual Machine**.

![](/files/iaPFnTwChPJJSXuyee68)

To restore virtual machines to the vSphere, select **Restore to VMWare vSphere**.

Click **Next**.

#### Select Virtual Disks

Select virtual disks to restore. You can restore all disks, or select specific disks with **Restore selected disks only**.

![](/files/7AsEK2aQfFqUQhkhVmfm)

Click **Next**.

#### Select VMware Host Server

Provide credentials to the target VMware server and select the target host. The host selection is available after you specify the correct credentials to the target VMware server.

![](/files/t8XxHnxCvdld6mx6Ne80)

Click **Next**.

#### Restore Options

Select the target datastore to put the restored VMs from the list of available, then configure the restore options.

![](/files/EOcbsMvXToWR9sK1l3cq)

The following restore options are available:

* Configure the action for running virtual machines. You can power the VMs off and then restore or skip the restore if a virtual machine is up and running
* To run the restored virtual machines after the restore plan completes, select the **Power on virtual machines after successful restore** check box

Click **Next**.

#### Restore Virtual Machines As

Specify the names for the restored VMs if required.

![](/files/dpK0JPrT5sxQx14MttJw)

To overwrite the existing virtual machines on the target datastore, select the appropriate check box.

Click **Next**.

#### Schedule

Specify the restore plan schedule settings if required.

![](/files/4NBfaH5QpjpxY1YZzO4B)

The following options are available:

* If you intend to run the restore plan manually, select the **No schedule** option
* If you intend the restore plan to run on a particular date and time, select the **Specific date** option, then specify the required date and time
* If you intend the restore plan to run on a constant periodic basis, select the **Recurring** option, then customize the schedule
* Select the **Synchronize repository before restore** check box to run the repository synchronization before restore. Be aware that in some cases with huge data amounts the sync procedure can take up to several hours
* To stop the restore plan in case it continues suspiciously long, select **Stop the plan if it runs for** check box, then specify the maximum plan duration
* To run the restore plan as the powered-off computer (where this restore plan is created) is on in case the restore plan run was missed by schedule, select the **Run missed scheduled plan immediately when computer starts up** check box

Click **Next**.

#### Pre / Post Actions

Customize actions to be taken before and/or after the restore plan execution.

![](/files/f37mtMuYWGsxgntFajQE)

**Custom Scripts**

You can execute custom scripts before or after running the restore plan.

* To specify the script execution before the restore plan, select the **Pre-restore action** check box, then specify the path to the script in the field below. To open a standard Windows dialog box, click the **...** button
* Select the pre-restore script execution options:
  * **Do not run the backup plan if the pre-restore action fails**. Select this option to cancel the restore plan in case the specified script fails
  * **Run the restore plan if the pre-restore action fails**. Select this option to run the restore plan regardless of the specified script execution results
* To specify the script execution after the restore plan terminates, select the **Post-restore action** check box, then specify the path to the script in the field below. To open a standard Windows dialog box, click the **...** button
* Select the post-backup script execution options:
  * **Execute post-restore action only if restore plan completes successfully**. Select this option to execute the post-restore script only in case of a restore plan success
  * **Execute post-restore action regardless of the restore plan result**. Select this option to execute the post-restore script in any case

Note that an absolute path to a script is required, i.e. if you specify the path to a script, it should be as follows:

```bash
c:\scripts\prebackup-script.bat
```

In case the absolute path to a script file is not specified, the default directory for script is "**C:\Windows\System32**"

The following script formats are supported: EXE, COM, BAT, CMD, or PIF

Mind that Backup for Windows supports **EXE** files have several restrictions: EXE files must not use GUI and must close automatically upon termination.

For example, the following script will not succeed:

```bash
cmd.exe /F:ON
```

In this case, this command must be used with the **/C** parameter, as shown below:

```bash
cmd.exe /F:ON /C
```

The same restriction applies to applications executed by PowerShell scripts:

```bash
PowerShell.exe Start-Process cmd.exe exit
```

Click **Next**.

#### Notifications And Logging

Specify the notification and logging settings for the plan.

![](/files/gkKtXYIoZEKIWqgBXXUT)

* To receive the notification after the restore plan completion, select **I want to receive notification email** check box
  * Select the **When restore plan fails or finished with warnings** option if you want to receive the notification message only in case the plan was not finished successfully for some reason
  * Select the **In all cases** option if you want to receive the notification message in any case
* In the fields **Username**, **Email**, **Email subject** specify the notification email details. You can specify one or more email recipients. Separate them by semicolon or comma, the recipient name (one for all of them). The email subject can also contain any of the following variables:
* **%COMPUTER\_NAME%** Indicates the name of a computer the plan is executed
* **%RESULT%** Indicates the plan result

**%RESULT%** variable has the following values:

* **Completed**. This value is assigned when the plan is terminated with success
* **Completed with warnings**. This value is assigned when the plan is terminated with errors, warnings or has been interrupted
* **%PLAN\_NAME%** Indicates the plan name.
* If you want to use own SMTP server for notification emails, select the **I want to use my SMTP server for email notifications** check box, then specify the settings for the SMTP server
* If you want the restore plan record to be added to Windows Event Log, select on **Add entry to Windows Event Log** check box
  * Select the **When restore plan fails or finished with warnings** if you want to receive the notification message only in case the plan was not finished successfully for some reason
  * Select the **In all cases** option if you want the entry to be put in Windows Event Log in any case

Click **Next**.

#### Check Network Shares

Check if the backup service has access to the network shares you specified.

![](/files/ImKlnjYIG7dT5P0KB8Eu)

This step is optional.

Click **Next**.

### Edit Restore Plan

To edit the restore plan, proceed as follows:

1. Switch to the **Restore Plans** tab.
2. Open the plan to edit, expand it, then click **Edit**.
3. Follow the restore wizard steps to save the backup plan configuration.

### Delete Restore Plan

To delete the restore plan, proceed as follows:

1. Switch to the **Restore Plans** tab.
2. Open the plan to delete, expand it, then click **Delete**.
3. Click **Yes** to confirm the plan deletion.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://system-development-services.gitbook.io/truesecure-guide/restore-backup-data/vmware-virtual-machine-restore-plan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
