> For the complete documentation index, see [llms.txt](https://docs.plenit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plenit.com/docs-en/productos/disaster-recovery/how-to/how-to-run-a-failover.md).

# How to Perform a Failover in Disaster Recovery

Activate the backup site when the primary one fails: run failover, choose the restore point, and hand over operations to the Recovery site.

Failover is the jump to the backup site: you execute it when the primary site goes down or you need to evacuate the servers, to keep providing service from the Recovery site.

This is the critical moment of Disaster Recovery, and with the plan already set up it is reduced to a few guided steps. This guide walks through the execution.

> #### 👍 What you get
>
> The workload evacuated to the Recovery site and operational, with the services running from the backup site after an incident at the primary one.

### Before you begin

* Access the administration panel at [admin.plenit.com](https://admin.plenit.com) with permissions on the environment.
* Having a protected Servers or Remote Desktop subscription, and its subscription of **Disaster Recovery** with active replication.

Throughout the guide, an example is used with **Madrid** as the primary site and **Paris** as the backup site, so the purpose of the evacuation is clear.

### Step 1. Execute the failover

In [admin.plenit.com](https://admin.plenit.com), go to **Cloud Services → Disaster Recovery**, sign in to the subscription and open **My Plans**. In normal operation, the **Primary Site** is **active** and the **Recovery Site** to **inactive**. Click **Failover** to begin shifting the services to the backup.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-b1b7a56c5efcbaf2bb5ff2092b2d26aee787e7a9%2FCAPTURA%201%20%C2%B7%20My%20Plans%20%C2%B7%20estados%20active-inactive%20%C2%B7%20bot%C3%B3n%20Failover.jpg?alt=media" alt=""><figcaption><p>Failover</p></figcaption></figure>

### Step 2. Choose the restore point and confirm

Select the **restore point** you want to move operations to and click **Confirm**. A message appears to validate the failover to that point: click **Yes** to proceed.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-d66d9946874f8fdcbd7ed1825d171496df0ab551%2FCAPTURA%202%20%C2%B7%20selecci%C3%B3n%20del%20punto%20de%20restauraci%C3%B3n%20%C2%B7%20Confirm.jpg?alt=media" alt=""><figcaption><p>Restore point selection</p></figcaption></figure>

> 📘 Which restore points will you see
>
> The available points depend on the configuration of the Disaster Recovery plan and the time elapsed. If you choose one that doesn't have the configuration you expected, after the failover you can switch to another restore point.

### Step 3. Wait for the evacuation

The subscription carries out the migration preparation operations and you can see the progress. When the **Recovery Site** becomes available, a message appears confirming it: click **Perfect** to continue.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-3bdd362ff8cb9796505ded60fde265a836b84f61%2FCAPTURA%203%20%C2%B7%20evacuaci%C3%B3n%20en%20curso%20y%20aviso%20de%20Recovery%20Site%20disponible%20(Perfect).jpg?alt=media" alt=""><figcaption><p>Evacuation in progress and Recovery Site available notice (Perfect)</p></figcaption></figure>

### Step 4. Check that everything is running on the backup

With the workload already in the Recovery site, check that all services are running correctly and are accessible. From here on, you operate normally from the backup site.

<figure><img src="https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-fbf468a09251707888ffc8fdede82e806bfbe2e1%2FCAPTURA%204%20%C2%B7%20servicios%20corriendo%20en%20el%20Recovery%20Site.jpg?alt=media" alt=""><figcaption><p>Services running in the Recovery Site</p></figcaption></figure>

> 🚧 Re-protect the environment after failover
>
> Once operating on the backup, the environment is left without a replica protecting it against another incident.
>
> To protect it again, reconfigure the replication as explained in [How to configure the frequency and number of copies.](https://docs.plenit.com/docs-en/productos/disaster-recovery/how-to/how-to-configure-replica-frequency-and-copies.md)

### Conclusion

Failover turns a normally stressful moment into a predictable process: from My Plans, click Failover, choose the restore point, confirm, and the platform evacuates the services to the Recovery site.

What you shouldn't forget is what comes next: check that everything is running on the backup and reconfigure replication so you don't remain unprotected.

When the primary site becomes available again and you want to return, that path is failback.

### Next steps

* When you want to return to the primary site, follow [How to perform a failback.](https://docs.plenit.com/docs-en/productos/disaster-recovery/how-to/how-to-perform-a-failback.md)
* Review what failover and failback are in [Failover and failback.](https://docs.plenit.com/docs-en/productos/disaster-recovery/concepts/failover-and-failback.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.plenit.com/docs-en/productos/disaster-recovery/how-to/how-to-run-a-failover.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
