End-of-Life (EoL)

Configure the Live Backup Environment

Follow these steps to configure a live backup environment.
Live Backup enables you to mirror your production server to a backup server, and in disaster recovery scenarios to easily convert your backup server to be the production server.
Before you start, ensure that you save the disaster recovery configurations before you copy all files
.
  1. Go to
    Settings
    About
    Troubleshooting
    Server Configurations
    and do the following:
    1. Verify that the
      External Host Name
      is correct.
    2. Click
      Add Server Configuration
      .
    3. Add the following key and value.
      Key
      Value
      ui.livebackup
      True
  2. Go to
    Settings
    Advanced
    Backups
    and in the
    Live Backup
    field, select
    ON
    .
  3. Configure the following backup server parameters.
    Parameters
    Value
    Hostname/IP Address
    Backup server IP address or Host name (without https:// prefix).
    Port
    Default is 443.
    Trust server certificate (unsecured)
    ON: certificates are not checked. OFF: certificates are checked.
    Use proxy
    Select whether to use a proxy.
  4. On another machine with a different host name or IP address, install Cortex XSOAR using the
    -- -dr -do-not-start-server
    flag, by typing the following command:
    # ./demistoserver-xxxx.sh -- -dr -do-not-start-server
  5. Verify that the backup server is accessible from the production server through port 443 (or any other port configured as a listening port). Ensure that there are no firewalls that might drop communication.
  6. Stop the Cortex XSOAR server, by typing the following command:
    sudo service demisto stop
  7. Create a tarball file of the necessary files and folders on the production server to be copied to the backup server. Ensure that all files and folders have
    demisto:demisto
    ownership.
    The following command preserves
    demisto:demisto
    ownership and file permissions:
    # tar --ignore-failed-read -pczf demistoBackup.tgz /var/lib/demisto/data /var/lib/demisto/artifacts /var/lib/demisto/attachments /var/lib/demisto/systemTools /var/lib/demisto/d2_server.key /usr/local/demisto/cert* /usr/local/demisto/demisto.lic
  8. Copy the necessary files and folders from the production server to the backup server. Ensure all files and folders have
    demisto:demisto
    ownership.
    • data
    • /var/lib/demisto/artifacts
    • /var/lib/demisto/attachments
    • /var/lib/demisto/systemTools
    • /var/lib/demisto/d2_server.key
    • /var/lib/demisto/cert*
    • /var/lib/demisto/demisto.lic
  9. Copy the created tarball file (demistoBackup.tgz) to the backup server using either scp or a tool that you prefer, by typing the following:
    # scp demistoBackup.tgz root@<yourBackupServerIPorHostname>:/root
  10. On the backup server, extract the backup tarball file with the following command (original file permissions and ownership will be preserved).
    # tar -C / -xzpvf demistoBackup.tgz
  11. Start the backup server and then the production server by typing the following command in each environment:
    sudo service demisto start
    If the procedure is successful,
    Live Backup
    is
    ON
    :
    If the server is active, Cortex XSOAR appears as usual when you connect. You can Transition an Active Server to Standby Mode or Transition a Standby Server to Active Mode.

Recommended For You