Backing up the data server

To prevent data loss, periodically back up the data server files to a backup directory.

About this task

If there is a problem with the computer on which the data server resides or if the files become corrupted, you can roll back to a previous version by using the backup files. You can also store snapshots of knowledge bases and decision plans in the backup directory. If the current knowledge base or decision plan is corrupted, you can replace it with a backed up copy.

To configure periodic backups, use the DataServerParameters -Register command with these parameters:

data_server_directory
Specifies the fully qualified path to the directory where the data server keeps data files, such as Classification_Home/dserverdir.
data_server_port_number
Specifies the port for accessing the data server.
backup_directory
Specifies the fully qualified path to the directory where the data server files are to be backed up periodically.
hours_between_backups
Specifies how many hours elapse between data server backups. The default is 1 hour.
generation_count
Specifies how many generations of knowledge bases and decision plans to back up. Snapshots of the knowledge bases are named as follows: KB_kb_name.gen1, KB_kb_name.gen2, and so on. Snapshots of the decision plans are named as follows: DP_dp_name.gen1, DP_dp_name.gen2, and so on. The default is 3 snapshots.
generation_days
Specifies how many days elapse between two generations of a knowledge base or decision plan. The default is 2 days.

Viewing current backup parameters

About this task

You can view the current backup parameters before you change them. The output displays the data server directory, the data server port, the backup directory, the number of hours that elapse between backups, how many generations (snapshots) of the knowledge bases and decision plans are to be maintained, and the number of days that elapse between knowledge base and decision plan generations.

Windows
To view the current DataServerParameters settings on Windows, run the following case-sensitive command from the Classification_Home\Bin directory in a command window:

DataServerParameters -View

AIX®, Linux, and Solaris
To view the current DataServerParameters settings on AIX, Linux, or Solaris, run the following shell script from the Classification_Home/Bin directory:

./DataServerParameters.sh -View

Configuring backup parameters

About this task

If you change the parameters for backing up the data server, you must restart the server for your changes to take effect.

Windows
To configure backups on Windows, run the following case-sensitive command from the Classification_Home\Bin directory in a command window:

DataServerParameters.bat -Register data_server_directory data_server_port_number backup_directory hours_between_backups generation_count generation_days

For example: DataServerParameters -Register C:\IBM\ContentClassification\dserverdir 18086 D:\Backup 2 5 4

AIX, Linux, and Solaris
To configure backups on AIX, Linux, or Solaris, run the following shell script from the Classification_Home/Bin directory:

./DataServerParameters.sh -Register data_server_directory data_server_port_number backup_directory hours_between_backups generation_count generation_days

For example: ./DataServerParameters.sh -Register /usr/IBM/ContentClassification/dserverdir 18086 /usr/IBM/ContentClassification/Backup 2 5 4

Disabling backups

About this task

If you no longer want to back up the data server, you can disable the backup settings.
Windows
To disable backups on Windows, run the following case-sensitive command from the Classification_Home\Bin directory in a command window:

DataServerParameters -Register data_server_directory data_server_port_number none 0 0 0

AIX, Linux, and Solaris
To disable backups on AIX, Linux, or Solaris, run the following shell script from the Classification_Home/Bin directory:

./DataServerParameters.sh -Register data_server_directory data_server_port_number none 0 0 0