# Creating a backup plan

#### Creating an Azure DevOps (or DevOps Server) backup plan ensures your projects and data are securely protected and easily restorable.

***

## Backup plan setup <a href="#backup_plan_creation" id="backup_plan_creation"></a>

{% stepper %}
{% step %}
Login to **GitProtect Management Service**, open the **Plans** > **Backup** tab and click the <img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2FXOrMarFFkkIrT5QTnvx1%2Fimage.png?alt=media&#x26;token=12e34baf-344f-4a72-9a2e-2a38e452d608" alt="" data-size="original"> **Add plan** button in the top bar.
{% endstep %}

{% step %}
Select **Azure DevOps** from the list.
{% endstep %}

{% step %}
Select (or add) the **Azure DevOps** or **DevOps Server** environment you want to include in the backup process, and choose the repositories to back up.

{% hint style="success" %}
**GitProtect** allows you to protect the entire **Azure DevOps** environment.
{% endhint %}

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2FXjtyoqdg2cm7Adsl7ckI%2Fazureprotecc.png?alt=media&#x26;token=4f754bc4-efd2-43d2-8dc5-4cc11229b8b7" alt=""><figcaption></figcaption></figure>

1. **Protect all** — protects an entire **Azure DevOps** organization.
2. **Select projects** — allows you to protect selected **Azure DevOps** projects (including its metadata).
3. **Select repositories** — protects only **selected repositories**.
4. **Set rules** — lets you set rules for **GitProtect** to automatically select resources to protect.
   {% endstep %}

{% step %}
Specify a name for the backup plan.
{% endstep %}

{% step %}
Select the appropriate metadata that you want to back up. Here, you can also change the **default worker**, which is the device directly responsible for the backup process of your repositories.

{% hint style="success" %}
You can have multiple workers and assign different workers to each backup plan.
{% endhint %}

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2F6utNknA6sbTdCLOU1hZn%2Fimage.png?alt=media&#x26;token=042b1c6c-2bce-4d83-8071-6b7328fb1432" alt=""><figcaption></figcaption></figure>

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fr4FzzNsVN8EhFgu6FY2B%2Fimage.png?alt=media&#x26;token=3db1dd9a-c9e4-4044-9821-198a4a31b569" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Select one of the locations assigned to your **GitProtect** instance as storage.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2FZJbD7oJaA4iTOGyMvRvd%2Fimage.png?alt=media&#x26;token=b213ac2d-499b-408d-bebe-f4eb277f8b8d" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Customize the scheduler and specify how long your data should be retained. If needed, adjust the advanced settings to suit your needs.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fy2Mytfe6RTwYwk2RZys6%2Fimage.png?alt=media&#x26;token=8c7ffe26-61e7-4c61-90c7-88cf82536786" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
If necessary, adjust the advanced settings such as encryption, error handling, or bandwidth limits to fit your requirements.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2FfccphQGBv08b9HBxBiKU%2Fimage.png?alt=media&#x26;token=83dd6d40-2003-4ced-ac8b-774cd1c54f1b" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Double-check your data and click **Save** to create the backup plan.
{% endstep %}
{% endstepper %}

***

## Useful links and items

{% content-ref url="../../../../storage-backup-destination-overview-and-setup/cloud-storage" %}
[cloud-storage](https://helpcenter.gitprotect.io/storage-backup-destination-overview-and-setup/cloud-storage)
{% endcontent-ref %}

{% content-ref url="../../../../deployment-and-configuration/gitprotect-worker" %}
[gitprotect-worker](https://helpcenter.gitprotect.io/deployment-and-configuration/gitprotect-worker)
{% endcontent-ref %}

{% content-ref url="../../../../management/scheduler-and-retention" %}
[scheduler-and-retention](https://helpcenter.gitprotect.io/management/scheduler-and-retention)
{% endcontent-ref %}
