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/demistodirectory to/var/lib/demisto.old.mv /var/lib/demisto /var/lib/demisto.oldCopy the following files and directories from the old server to the new server.
/var/lib/demistoscp -r /var/lib/demisto <username@NewServerIPAddress>:</remote/directory>cert.keyandcert.pemunder/usr/local/demistoscp cert.key <username@NewServerIPAddress>:</remote/directory>scp cert.pem <username@NewServerIPAddress>:</remote/directory>Where
usernameis the user on the new server andNewServerIPAddressis the IP address of the new server. The/remote/directoryis 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.licscp demisto.lic <username@NewServerIPAddress>:/usr/local/demisto
Ensure that ownership of the directories and files are set to
demisto:demistochown -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 demistosudo service demisto start