> 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-8-on-prem/8.8/onboard-cortex-xsoar/back-up-and-restore-cortex-xsoar/restore-backups-between-clusters.md).

# Restore backups between clusters

Restoring a backup from one cluster to another enables setting a clean or standby Cortex XSOAR environment to the same state as the original backed-up Cortex XSOAR environment.

{% hint style="warning" %}

### Danger

* Verify you have an existing backup. View the available list of backups by running the `sudo /home/viewer/sbin/backup-cli backup list` command in your CLI.
* Ensure the new cluster has the following configurations and hardware specifications.

  * The FQDN for the new cluster must be the same as the previous cluster.
  * The new cluster must have the same amount of nodes as the previous cluster.
  * The new cluster must have the same scale size (CPU, memory, and disk space) as the previous cluster.
  * The UI Account Admin user for the new cluster must have the same password as the UI Account Admin user in the previous cluster.

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>The node IP addresses in the new cluster can differ from the previous one.</p></div>
* Ensure the NFS server is accessible from both deployments. The subnet should be the same, or another entry should exist for the new cluster but with the same path on the NFS server.
* Verify the new cluster was installed successfully and the UI is accessible.
  {% endhint %}

How to restore a backup between clusters

1. From the new cluster CLI, run the `backup-cli install` command to connect the NFS server to the new cluster.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>Use the same NFS server IP, path, and size limit from the previous deployment.</p></div>

   ```programlisting
   sudo /home/viewer/sbin/backup-cli install [nfs-server-ip] [nfs-path] [size-limit (GB)]
   ```

   Example:

   ```programlisting
   sudo /home/viewer/sbin/backup-cli install 1.1.1.1 /some/path/to/nfs/ 1024
   ```

   The CLI shows a list of tasks performed to connect the NFS server to the cluster. This can take a few minutes.

   ![opp-backup-restore-nfs-install.png](/files/EJjEl5oEOelzQfoHgf1T)
2. Run the `backup list` command to verify you can see the backups from the previous cluster.

   Example:

   ```programlisting
   sudo /home/viewer/sbin/backup-cli backup list
   ```
3. Run the `restore` command to restore a specific backup to the new cluster.

   ```programlisting
   sudo /home/viewer/sbin/backup-cli restore [backup-name]
   ```

   Example:

   ```programlisting
   sudo /home/viewer/sbin/backup-cli restore xsoar8-7-0-12-20240818050050
   ```
4. Validate that the data is restored to the new cluster.

For more information on the backup and restore commands, see [Run backup and restore operations from the CLI](/cortex-xsoar-8-on-prem/8.8/onboard-cortex-xsoar/back-up-and-restore-cortex-xsoar/run-backup-and-restore-operations-from-the-cli.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 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-8-on-prem/8.8/onboard-cortex-xsoar/back-up-and-restore-cortex-xsoar/restore-backups-between-clusters.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.
