# Policies

In order to enable snapshot management for Storage Instance you need to do the following steps:

Go to Snapshot SLAs under the Storage section and create a new Snapshot Management policy:

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FyT844NYxewwWv5gCNN9C%2Fadministration-storage-providers-snapshot-sla-policies-1.png?alt=media\&token=42e1d289-68e1-4b9a-b780-1e6fe7335f3d)

As well as other types of Policies, you'll also find 4 main sections here:

### General

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FVxuv3NTWyn6oIXZcbrM4%2Fadministration-storage-providers-snapshot-sla-policies-2.png?alt=media\&token=11fdddfe-51ab-49d7-a8ea-61eb95a4ab21)

Under this section you can set up:

* Name of policy
* Enable/disable this policy
* **Snapshot Retry Count** - how many times, Storware will try to repeat the snapshot task
* Set priority for the task

### Auto-assignment

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2Fk3TyduadAdYZfOfGV6KK%2Fadministration-storage-providers-snapshot-sla-policies-3.png?alt=media\&token=76858aad-1ba6-4d9e-8e79-ab9a7a675de8)

In this section you can set up:

* Mode
  * Disabled
  * Assign only
  * Assign and remove
* Include or exclude rules based on regular expression matching Storage Instance name, i.e.:
  * regular expression examples:
    * **.\*** match any character any number of times
    * **storage-\[0-9]\[0-9]\[0-9]** - match name that starts with storage- and 3 digits
    * **(prod|uat|dev)-\[0-9]\[0-9]\[0-9]\[a-z]?** - match the name that starts with prod or uat or dev prefix, then -, then 3 digits and optional lower-case letter (matching is case-sensitive)
  * exclude rules always take precedence over include rules&#x20;
  * Storage Instances may not be reassigned to the different policy if they already have a matching policy assigned&#x20;
  * Storage Instances may be reassigned to the different policy only if mode is assigned and remove, current policy assignment rules don't match, and other's policy rules match
  * &#x20;rules are joined with OR operator, so&#x20;
    * if any rule (tag or matched regular expression) excludes Storage Instance - it will be excluded&#x20;
    * if no rule (tag or matched regular expression) excludes Storage Instance, and any rule (tag or matched regular expression) includes Storage Instance - it will be included&#x20;
  * You can also select Storage Pools to match only Storage Instances that belong to them

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FGZOvxMKvbYMUsXRarrd6%2Fadministration-storage-providers-snapshot-sla-policies-4.png?alt=media\&token=2ba1519d-285a-4d7d-9346-148da2992dc2)

In this place, you can select storage instances manually in a simple way.

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2Fn7FDN3G9qkaPyZnGnkf5%2Fadministration-storage-providers-snapshot-sla-policies-5.png?alt=media\&token=cbb8b773-7b6f-4e93-a667-3dd01b9994c9)

Provide retention settings - how many snapshots (created by this policy) will be kept and for how long. If you have already created a schedule, you can also select it.
