# Setup

## Preparing a replication plan <a href="#planning_a_replication_plan" id="planning_a_replication_plan"></a>

When preparing a replication plan, you should decide on the storage location, define an appropriate schedule, determine the frequency of replication, and verify if your infrastructure resources can support the replication process.

It is also crucial to run the replication plan at the right time to make sure that <mark style="color:$danger;">no backup tasks are running during replication</mark>. Since replication transfers significantly more data than a single backup task, you must ensure that your network has sufficient resources available when the process is executed.

To increase security, keep your backup data in <mark style="color:$danger;">at least two separate locations</mark> to ensure that if one location becomes unavailable, the data remains accessible from the other.

If your infrastructure handles a large number of backups, it is recommended to schedule replication at least once per week— this frequency helps ensure that your backup data is consistently copied to the secondary location without overloading your resources. Weekly replication is a reliable recovery option that reduces the risk of data loss, while decreasing the impact on your infrastructure.

***

## Setting up a replication plan <a href="#setting_up_the_replication" id="setting_up_the_replication"></a>

{% stepper %}
{% step %}
Log in to **Xopero ONE Management Service** (**XMS**), click the **Plans** tab, and select **Replication** from the drop-down menu.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2F0FjVmDdNsbMDDvS5uqZO%2Fimage.png?alt=media&#x26;token=2343071d-f81f-4c28-89d0-e53a81614dce" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click the **+ Add plan** button in the top-right corner to open the plan creation side panel. Select the **Source storage** section first, and choose one of your available storages (or add a new one for future use).

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FruxalSmUYc0XGmOBMUi6%2Fimage.png?alt=media&#x26;token=63a7b527-ed12-4b94-a57a-d9b10e93fccd" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Next, select **Target storage** and choose (or add new) storage where your data will be replicated.

{% hint style="danger" %}
The storage selected as target storage <mark style="color:$danger;">**cannot be part of any other backup plan**</mark>. If a backup plan is already using this storage, it will <mark style="color:$danger;">**not be available**</mark> and <mark style="color:$danger;">**will not appear in the list**</mark>.
{% endhint %}

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2Ff2J5WMmvFc4GGeSBz3FW%2Fimage.png?alt=media&#x26;token=afbf212c-269c-40db-8e94-46d2336bf1c7" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
The following section is **Scheduler & Retention**, where you define how often data is replicated between the selected storages. Replication can be scheduled monthly, daily, or hourly on specific days and within a defined time range.

There are three additional settings available for replication tasks (click **Edit** next to **Other settings** to view them):

1. **Time zone** – define the time zone for the replication task.
2. **Schedule Window** – set a specific time slot for replication.
3. **Prevent system sleep** – keep the device responsible for replication from entering sleep mode during the replication process.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2Fr2gHlk9bsbR8cOGVR6Fy%2Fimage.png?alt=media&#x26;token=b75cb520-215d-479a-a6f9-48858e122f41" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Finally, you can select the **Default worker**— a device that performs the task. Click the **Change** button to choose a device.

{% hint style="warning" %}
The selected device <mark style="color:$danger;">**must have**</mark> access to both the source storage and the target storage.
{% endhint %}

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FqqerOCXftX4LpE64U2ta%2Fimage.png?alt=media&#x26;token=f121a2a4-b43e-4388-8aca-4b5ea7a545a5" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
The replication task is now ready. Click **Save** to finish the operation, or **Save & Run** to create and run the task immediately.
{% endstep %}
{% endstepper %}

## Simultaneous operations

Another way to improve replication speed is by adjusting the number of concurrent file copy operations (**Advanced settings** > **Simultaneous operations**). By default, only one file is copied at a time— for best performance, it is recommended that the number of concurrent copies <mark style="color:$danger;">should not exceed</mark> the number of CPU cores on the device handling the replication task.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FbFtqQVMYTWucZy3kR2JC%2Fimage.png?alt=media&#x26;token=c0d402c5-9b45-434c-9084-7b35e20d1021" alt=""><figcaption></figcaption></figure>
