> For the complete documentation index, see [llms.txt](https://docs.higiocloud.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.higiocloud.vn/hi-gio-draas/failover-scenario/failover/step-4-reverse-replication-of-the-vm-from-hi-gio-cloud-to-on-premises.md).

# Step 4: Reverse replication of the VM from HI GIO Cloud to On-Premises

## <mark style="color:green;">**Overview**</mark>  <a href="#overview" id="overview"></a>

After the on-premises site has **recovered from the issue** and is **available**, we can migrate the workload (APP1, DB1) from the HI GIO cloud back to on-premises by reversing the replication.

## <mark style="color:green;">**Procedure**</mark> <a href="#procedure" id="procedure"></a>

{% stepper %}
{% step %}
**Step 1:** Log on to the HI GIO portal.
{% endstep %}

{% step %}
**Step 2:** Expand **More** > Click on **Availability ()**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FG7gB0ql2cPGiudE5UVQ7%2Fimage.png?alt=media&amp;token=0ba121f6-ff32-4af7-9221-0d3395067e7c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 3:** Click **Incoming Replications >** Check the checkbox for vAPP1 > Expand ALL ACTIONS > Click on **Reverse.**

You can also select individual VMs in this step.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2Fni2AuNvx457e8esJBgg9%2Fimage.png?alt=media&amp;token=342f16be-78c6-4910-8dca-2fb65a205987" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 4:** Confirm Reverse Replication from HI GIO Cloud to on-prem. Click **REVERSE**.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FqsGc72qbjJf5tiLGs2oX%2Fimage.png?alt=media&amp;token=7de2b55e-0151-4eea-a2fb-93a70f3a2c1c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 5:** Expectation result:

1. Reverse Replication is in progress. You can monitor the progress of the Reverse task in the Last changed section and replicate the state.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FKu02FLhtDrP3kXm8OfYu%2Fimage.png?alt=media&amp;token=8ce73104-233a-4e4b-b5e9-e4fceb82449c" alt=""><figcaption></figcaption></figure>

2. Reverse Replication is Completed. Here, APP1 & DB1 are replicated back to On-Prem, and the Recovery State is Reversed.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2Fo2Qr5l4pdURqUrtLTkzt%2Fimage.png?alt=media&amp;token=1fd496fd-257d-4ceb-84bd-b89b07e57f15" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# 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.higiocloud.vn/hi-gio-draas/failover-scenario/failover/step-4-reverse-replication-of-the-vm-from-hi-gio-cloud-to-on-premises.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.
