> For the complete documentation index, see [llms.txt](https://docs.storware.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.storware.eu/administration/virtual-environments/recovery-plans/policies.md).

# Policies

To schedule a VM to restore using a recovery plan (or execute a recovery plan manually), you must first create a policy.

Go to the Recovery Plans from the left menu under the Virtual Environments section.

![](/files/vDdfnwe6q4lWyhoBxbAZ)

After clicking on ![](/files/8UpBgHw6WYyaNZnhCTDS) provide the name of the policy and set priority. After saving you will be able to add rules using the new button on the right.

![](/files/OLKllVZJWtMpYMnu6b33)

Click on it and customize restore settings.

![](/files/JDoZ9QwjN7rUNbjQbs8R)

Each rule requires a **name** for easier identification later

![](/files/dvu8mjAfbIYiycNn4Epy)

In the **Virtual Environments** tab, you need to select **Hypervisor type** for this rule and corresponding **virtual environments** of this type

![](/files/z1nR7tgUrCbNXy585OUz)

If you previously defined any schedules for recovery plans you can select them in the **Schedules** tab

![](/files/zZWKnVErKmn5KewtpAzI)

In the **Restore Parameters** tab, you specify where VMs are going to be restored - compared to regular restore parameters provided in the manual restore window, notice that:

* you need to choose **\*\*which backup to restore -** last (regardless of status) **or** last successful
* you may want to use **Delete if Virtual Environment already exists** - which allows Storware Backup & Recovery to remove VM with the same name as the one being restored

![](/files/jPaoY6zv5yakhkcv55Ya)
