End-of-Life (EoL)

Move Data Folders to Another Location on the Server

Follow these steps to move the directories installed on the Cortex XSOAR server to another location.
Let
<new path>
mark the base path to which to move the Cortex XSOAR server files.
Always use the
cp
command with the
-p
flag to retain the original file permissions.
Use the following commands to only move the data.
  1. Stop the Cortex XSOAR service.
    sudo service demisto stop
  2. Move
    /var/lib/demisto
    to
    <new path>
    /var/lib/demisto
    .
    cp -pfr /var/lib/demisto
    <new path>
    /var/lib
  3. Add or modify keys by editing the existing
    /etc/demisto.conf
    file.
    Contents of the
    /etc/demisto.conf
    file are in JSON format and can hold additional data than what is shown in the example. In most cases, the existing
    demisto.conf
    file will not contain the necessary keys, such as
    folders
    and
    DB
    .
    { "Server":{ "HttpsPort":"443" }, "folders":{ "lib":"{new path}/var/lib/demisto" }, "DB":{ "DatabaseDir":"{new path}/var/lib/demisto/data", "IndexDir":"{new path}/var/lib/demisto/data" } }
  4. Start the Cortex XSOAR service using the appropriate command for your OS.
    sudo service demisto start
  5. (Optional)
    Verify that the process was performed successfully and remove the original directory
    /var/lib/demisto
    .

Recommended For You