Backup and recovery procedures help protect against disasters that might result in data loss. In a single-server deployment in which all components are installed on the same computer, failover or automatic disaster recovery is not supported.
The following methods are useful for handling recovery after a disaster:
For more information about these files, see Modifying the configuration files.
Additional information
The Search, Console Server, and Collection Station components are stateless and depend on the Configuration Database and Indexer for proper initialization.
Use the following procedures for backing up and restoring the Configuration Database data.
Execute the following command to perform an online backup:
java -jar lib/sqltool.jar --sql="BACKUP DATABASE TO '<Backup-Directory>/' NOT BLOCKING;" --inlineRC=url=jdbc:hsqldb:hsql://<IP-Address>:<port>/bwdb,user=sa
where:
<Backup-Directory>
refers to the directory path of the backup file; for example, C:/backup/ITDADB-20140203T154316.tar.gz.<IP-Address>
refers to the IP address or host name of the computer on which the Configuration Database is running. <port>
refers to the port number on which Configuration Database is running.
Execute the command results in a prompt for the sa user password.
When the backup command is successfully executed, a back up file called ITDADB-<Timestamp>.tar.gz is created in the backup directory. Every time you execute the backup command, a new backup file is created.
Change directory to the Configuration Database installation directory and execute the following command to restore the Configuration Database:
java -cp lib/hsqldb.jar org.hsqldb.lib.tar.DbBackup --extract <Backup-File-Absolute-Path> data
where:<Backup-File-Absolute-Path>
refers to the absolute path to the backed-up file; for example, C:/backup/ITDADB-20140203T154316.tar.gz.
When the restore command is successfully executed, the following files are created in the data directory:
ITDADB.properties
ITDADB.log
ITDADB.script
Start the Configuration Database service.
For more information, see Starting or stopping product services.
All indexed log data is stored by the Indexer. Each index contains log data for the configured number of hours. Multiple files are created for each index.