Restore a Tenant Database - EoL - Multi-Tenant Guide - 6.11 - Cortex XSOAR - Cortex - Security Operations

Cortex XSOAR Multi-Tenant Guide

Product
Cortex XSOAR
Version
6.11
Creation date
2022-12-12
Last date published
2024-07-16
Category
End of Life > EoL
Multi-Tenant Guide
Abstract

Restore a tenant database from a manual backup or automated backup back up in Cortex XSOAR.

Cortex XSOAR automatically backs up the database. If the database becomes corrupted or you need to revert to an earlier version of your data, you can restore a database backup.

Note

Any XSOAR service that uses the Elasticsearch database no longer runs automatic backups. To back up or restore the contents of your Elasticsearch database, follow the instructions in the Elasticsearch documentation.

  1. Log out all users from Cortex XSOAR.

  2. Stop the tenant process.

    Go to SettingsACCOUNT MANAGEMENTAccounts, select the tenant account, and click Stop.

  3. Delete the contents of the database directory.

    The default data directory for a specific tenant is /var/lib/demisto/tenants/acc_{TENANT_NAME}/data.

  4. Copy the backup file to the database location.

  5. Extract the .gzip backup file using tar -xzf <file-name>.

  6. Move the demisto_XXXXX.db files to the partitionsData folder. Keep the demisto.db file in the /data parent folder.

  7. The following directories need to be restored manually:

    • /var/lib/demisto/tenants/acc_{TENANT_NAME}/artifacts

    • /var/lib/demisto/tenants/acc_{TENANT_NAME}/attachments

    • /var/lib/demisto/tenants/acc_{TENANT_NAME}/images

    • /var/lib/demisto/tenants/acc_{TENANT_NAME}/d2_server.key

    • /var/lib/demisto/tenants/acc_{TENANT_NAME}/tools

    • /var/lib/demisto/tenants/acc_{TENANT_NAME}/versionControlRepo

    • /usr/local/demisto

    • /etc/demisto.conf

  8. Restart the tenant process and log in to Cortex XSOAR.

    Go to SettingsACCOUNT MANAGEMENTAccounts, select the tenant account, and click Start.