Performing the Backup

Code Insight 6.14.2 SP1

To perform a backup, perform the following steps.

To perform a backup, do the following:

1. The Code Insight Core Server and all Scan Servers must be stopped to perform the backup.
See Administration: Starting & Stopping Servers for details on stopping the servers.
If you have a multi-Scan Server environment, perform these steps for each Scan Server.
2. Copy or tar/zip the <CODE_INSIGHT_USER_HOME> directory.
This directory contains the client logs and Detector client properties used by Code Insight.
If you have a multi-Scan Server environment, perform these steps for each Scan Server.
3. Copy or tar/zip the <CODE_INSIGHT_ROOT_DIR> directory.
This directory contains all the components of the Code Insight system.
If you have a multi-Scan Server environment, perform these steps for each Scan Server.
4. Copy or tar/zip the workspaces directory.
The workspaces directory is defined in the <CODE_INSIGHT_USER_HOME>/scanEngine/scanEngine.properties file. Search for the workspaceBaseDirPath parameter. Typically, this would be located in <CODE_INSIGHT_ROOT_DIR>/workspaces.
This is only necessary if the workspaces directory has been defined outside of the <CODE_INSIGHT_ROOT_DIR>.
This directory contains all of the workspace data and metadata.
If you have a multi-Scan Server environment, perform these steps for each Scan Server.
5. Take a complete database dump of the central database configured in the <CODE_INSIGHT_USER_HOME>/core/core.db.properties file.
For MySQL, you can use one of the following:

Utility

URL

mysqldump program

http://dev.mysql.com/doc/refman/5.7/en/mysqldump.html 

MySQL Backup utility

http://dev.mysql.com/doc/refman/5.7/en/mysqldump.html 

For Oracle, refer to the following for detailed instructions:

http://www.orafaq.com/wiki/Oracle_database_Backup_and_Recovery_FAQ 

6. When the backup is completed, start the Code Insight servers.
See the Administration: Starting & Stopping Servers section of this guide for details on starting the servers.
If you have a multi-Scan Server environment, perform these steps for each Scan Server.