Move Cortex XSOAR data folders to a different 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.
Stop the Cortex XSOAR service using the appropriate command for your OS.
systemctl stop demistosudo service demisto stop
Move
/var/lib/demistoto.<new path>/var/lib/demistocp -pfr /var/lib/demisto<new path>/var/libEdit the
/etc/demisto.conffile.Contents of the
/etc/demisto.conffile are in JSON format and can hold additional data than what is shown in the example.{ "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" } }Update the origin path for the version control folder to the new location.
For example, if the new location is
/data/demisto/versionControlRepo, rungit remote set-url origin "file:///data/demisto/versionControlRepo"Note
Do not update the origin path if you are using a remote repository. If you are using CI/CD for content management, update the origin path.
Start the Cortex XSOAR service using the appropriate command for your OS.
systemctl start demistosudo service demisto start
(Optional) Verify that the process was performed successfully and remove the original directory
/var/lib/demisto.