A full restore involves restoring all components where EKM data is stored. This would be used for example, if the server where EKM was installed suffered a catastrophic disk failure, and needed to be reinstalled from scratch.
A partial restore, say of just the EKM version root directory, might be necessary if the files in this directory were corrupted or accidentally deleted.
A restore of the EKM program/user data would be necessary if data within the EKM application got corrupted. In this case, the EKM database and the EKM data directory would need to be restored.
In all cases, the EKM database and EKM data directory must be restored together because they are very closely linked.
The procedure for restoring the EKM database varies by database server type. Follow the directions provided with your database server to restore the EKM database from the backups you created.
For the MySQL database server, use the mysql command to restore the EKM database from the dump created by
the mysqldump command, as described in Backing up the EKM Database. Here is the suggested command-line
for restoring the ekm database:
MYSQL_HOME/bin/mysql < ekm.sqlwhere is the directory where the MySQL database server is installed.MYSQL_HOME
After restoring the EKM database and EKM data directory, it is also necessary to clear the search indices as instructed in Clearing the Search Indices.
Important: When restoring the EKM database, it is also necessary to restore the EKM data directory from the same backup set.
You can restore these directories from your EKM data directory backup. This is a simple filesystem restore, with no special commands to run.
After restoring anything from the EKM data or repository directory, clear the search indices as instructed in Clearing the Search Indices.
Important: When restoring the EKM data directory, it is also necessary to restore the EKM database from the same backup set.
After any restore, it is necessary to clear the search indices for all domains present on the EKM server. The search indices will automatically get recreated the next time EKM is started. This will ensure that the search indices are consistent with the data in the EKM repository after the restore operation.
To clear the search indices:
Go to the repository directory
and open the workspaces sub-directory.
For each subdirectory in the workspaces directory (such as Default, root and so on), delete the index subdirectory and all of its contents.