# Repository selection methods

**GitProtect supports multiple repository selection methods that allow administrators to define the scope of backup and recovery operations according to organizational requirements. Repositories can be selected manually, automatically, or included and excluded based on configurable rules and filters.**

***

## Selecting data to protect

When creating a backup plan, one of the steps is to specify which repositories you want to protect. **GitProtect** offers several methods for selecting repositories:

1. **Protect all**: this option ensures that all existing repositories and projects, as well as any newly created ones, are automatically included in the backup plan without requiring manual updates.
2. **Select projects**: using checkboxes, you can choose specific projects to protect.
3. **Select repositories**: using checkboxes, you can choose specific repositories to protect.

{% hint style="danger" %}
Repositories and projects created after applying method 2 or method 3 **will not be automatically included in the backup plan and must be added manually**.
{% endhint %}

3. **Exclude repositories**: using checkboxes, you can exclude specific repositories, allowing the plan to cover all other repositories by default.
4. **Set rules**: this option lets you define criteria to include repositories and projects based on attributes such as their names or associated topics, ensuring that repositories meeting these conditions are automatically protected.

{% hint style="info" %}
Learn more about selection rules and rule patterns in [this article](/backup-and-recovery/devops/general/repository-selection-rules.md).
{% endhint %}


---

# 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://helpcenter.gitprotect.io/backup-and-recovery/devops/general/repository-selection-methods.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.
