> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xsoar-6-installation-guides/6.12/cortex-xsoar-installation-guide/upgrade-your-installation/upgrade-the-live-backup-environment.md).

# Upgrade the Live Backup Environment

Live Backup enables you to mirror your production server to a backup server. In a disaster recovery situation, you can easily convert your backup server to the production server. See [Disaster Recovery and Live Backup Overview](/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/disaster-recovery-and-live-backup/disaster-recovery-and-live-backup-overview.md) for more details.

{% hint style="warning" %}

### Caution

Before you begin, verify that your system meets the system requirements, including the required operating system.
{% endhint %}

{% hint style="info" %}

### Note

The **`-y`** flag answers all installer questions with y/yes and uses default settings, including accepting the Cortex XSOAR EULA. If you apply the **`-y`** flag when upgrading the Live Backup Environment, it will use **`/tmp`** as the backup directory. If there is insufficient space in the **`/tmp`** directory to back up the **`/var/lib/demisto/data`** directory, the upgrade will fail.
{% endhint %}

Follow this procedure when upgrading your Cortex XSOAR version.

1. Stop the main Cortex XSOAR server and the DR Cortex XSOAR server by typing the following command.

   **`sudo systemctl stop demisto`**
2. Upgrade the DR Cortex XSOAR server.

   **`sudo ./demistoserver-X.sh -- -dr -y`**

   (Multi-tenant) - For multi-tenant deployments: sudo ./demistoserver-X.sh -- -multi-tenant -dr -y
3. Upgrade the main Cortex XSOAR server.

   **`sudo ./demistoserver-X.sh -- -y`**

   (Multi-tenant) - For multi-tenant deployments: sudo ./demistoserver-X.sh -- -multi-tenant -y
4. If the DR Cortex XSOAR server did not start, restart the DR Cortex XSOAR server.

   **`sudo systemctl start demisto`**
5. If the main Cortex XSOAR server did not start, restart the main Cortex XSOAR server.

   **`sudo systemctl start demisto`**


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsoar-6-installation-guides/6.12/cortex-xsoar-installation-guide/upgrade-your-installation/upgrade-the-live-backup-environment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
