# Creating a backup plan

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

{% stepper %}
{% step %}
Login to [**XMS**](#user-content-fn-1)[^1], open the **Plans** > **Backup** tab and click the <img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FG60IcZIZSkSASo1Tgv0I%2Fimage.png?alt=media&#x26;token=a71e483f-b35f-4096-b430-3baf005fbf4c" alt="" data-size="original"> **Add plan** button in the top bar.
{% endstep %}

{% step %}
Select **GitLab** from the list, and then click **Repos and metadata** in the next aside.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FBnGCDC9Xo4U38HR865Nv%2Fimage.png?alt=media&#x26;token=652aff18-2c40-47c5-b66f-55d3d253ac72" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

{% hint style="success" %}
Optionally, **Xopero ONE** allows you to protect the entire **GitLab** environment.
{% endhint %}
{% 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 %}

{% hint style="info" %}
It is worth noting that the **cloud worker** (a cloud-installed **Xopero ONE** worker) allows you to perform cloud-to-cloud backups if you want to store your backups in the cloud.
{% endhint %}
{% endstep %}

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

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FhATeIpLGTmMYFtosDBbe%2Fimage.png?alt=media&#x26;token=2b34310d-9818-4149-9a6d-538cc9cb5b0a" 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://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FWBzkgKREflmuntsVfbU3%2Fimage.png?alt=media&#x26;token=c39f8da0-e6fe-4dfe-beef-f29a8db5b711" 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://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FfOf8At5ni1Ehp82IYM36%2Fimage.png?alt=media&#x26;token=55316ef1-25a9-40f8-ac28-d524ca7e0213" 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/cloud-storage" %}
[cloud-storage](https://helpcenter.xopero.com/xopero-one-en/storage/cloud-storage)
{% endcontent-ref %}

{% content-ref url="../../../../deployment-and-configuration/xopero-one-worker" %}
[xopero-one-worker](https://helpcenter.xopero.com/xopero-one-en/deployment-and-configuration/xopero-one-worker)
{% endcontent-ref %}

{% content-ref url="../../../../management/scheduler-and-retention" %}
[scheduler-and-retention](https://helpcenter.xopero.com/xopero-one-en/management/scheduler-and-retention)
{% endcontent-ref %}

[^1]: Xopero ONE Management Service
