Migrate Cortex XSOAR data to another server, move data, copy files and directories.
In certain cases you might need to move data between servers, for example, when a stronger production server is required.
Install Cortex XSOAR on the new server.
Important
The Cortex XSOAR version installed on the new server must match the Cortex XSOAR version installed on the old server.
Do not start the Cortex XSOAR service when the installation finishes.
Change the
/var/lib/demisto
directory to/var/lib/demisto.old
.mv /var/lib/demisto /var/lib/demisto.old
Copy the following files and directories from the old server to the new server.
/var/lib/demisto
scp -r /var/lib/demisto <username@NewServerIPAddress>:</remote/directory>
cert.key
andcert.pem
under/usr/local/demisto
scp cert.key <username@NewServerIPAddress>:</remote/directory>
scp cert.pem <username@NewServerIPAddress>:</remote/directory>
Where
username
is the user on the new server andNewServerIPAddress
is the IP address of the new server. The/remote/directory
is the path of the directory you want to copy the file to. If you do not specify a directory, the file will be copied to the user home directory./usr/local/demisto/demisto.lic
scp demisto.lic <username@NewServerIPAddress>:/usr/local/demisto
Ensure that ownership of the directories and files are set to
demisto:demisto
chown -R demisto:demisto <file_path>
Start the Cortex XSOAR service using the appropriate command for your OS and wait for the server to complete the indexing process.
systemctl start demisto
sudo service demisto start