Backing up the Search index manually
The Search index can be backed up and restored at a later date in the event of loss or corruption of data.
- To back up the Search index manually, complete the following steps.
-
Disable any regular indexing tasks that you have configured.
To disable all tasks, enter the following command:
SearchService.disableAllTasks()
-
Verify that indexing is not ongoing.
For more information, see Verifying that index building is not taking place.
-
Copy the entire index directory and its subdirectories to a secure backup location.
-
When backing up the Search index, consider performing a full backup of the HOMEPAGE database.
Note that the Search index has a dependency on data in the HOMEPAGE database.
-
Re-enable your indexing task or tasks by performing one of the following steps:
- If you had no tasks that were disabled before you completed step 1, then run the SearchService.enableAllTasks() command.
-
If you had specific tasks that were disabled before you completed step 1, then use the SearchService.enableTask(String taskname) command to enable those tasks.
For example:
SearchService.enableTask("mine")
The next indexing task to run resumes indexing at the point at which the restored index was last successfully indexed.
-
Re-enable your indexing task or tasks, run the following command: SearchService.enableTask(String taskname)
For example:
SearchService.enableTask("mine")
The next indexing task to run resumes indexing at the point at which the restored index was last successfully indexed.
Parent topic:Backing up the Search index
Related information
Backing up the Search index using wsadmin commands