nativeInstallercodedx

Restore a previous Code Dx installation

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

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
    
Last modification September 4, 2018