# 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:

![](/files/GMyUsCLJqLhFGZdJzjcm)

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

### General

![](/files/MVifKRXFNg6t8rrFuqcP)

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

![](/files/09EJY48X2GdOayEKnw2i)

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

![](/files/g2b8A4yVGnUZa3ZhFakE)

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

![](/files/2sv0W9I7jSDPoJFT77AV)

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.


---

# 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://docs.storware.eu/backup-and-recovery-7.2/administration/storage-providers/snapshot-slas/policies.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.
