Restore a previous Code Dx installation
If you were upgrading Code Dx and the process failed, you can recover your previous installation by following the next steps:
Stop all services using the graphical manager or the command line:
$ cd installdir $ ./ctlscript.sh stop
Clean your installation directory except the backup-DATETIME directory.
$ cd installdir $ rm -rf !(backup-*)
Copy the content of the backup sub-directory to the installation directory.
$ cd installdir $ cp -r backup-DATETIME/backup/* .
The backup directory has the date and time of the backup as a suffix. Please remember to replace the placeholders in the previous command with the correct values.
If Code Dx was installed on Linux as the root user or on Windows, restore the Code Dx data to the external directory where Code Dx data is stored. This directory is /var/opt/ for Linux and *C:\ProgramData* for Windows. Copy the backup/codedx/codedx_data subdirectory to this directory, such that the result is /var/opt/codedx for Linux or C:\ProgramData\codedx for Windows.
If Code Dx was installed on Linux as the root user, set the correct file permissions.
$ cd installdir/apache-tomcat $ sudo chown -R tomcat:tomcat conf/ logs/ temp/ webapps/ work/ $ cd /var/opt/codedx/mariadb_data $ sudo chown -R mysql *
Start all services using the graphical manager or the command line:
$ cd installdir $ ./ctlscript start