Product DocsMenu

Restoring an Index Backup

You can use the Coveo Enterprise Search index (CES) backup feature to regularly back up your Coveo index (see Backing Up the Index With a PowerShell Script). Following an unfortunate event where your index becomes unusable, you can efficiently restore your latest backup to avoid having to rebuild all your sources.

To restore an index backed up with the index backup feature

  1. Using an administrator account, connect to the Coveo Master server.

  2. Ensure that the hard disk on which the Coveo index resides has sufficient free space to receive the restored backup.

    Note: When the corrupted index files are in their original location, they will be overwritten by the restored backup files, thus not requiring more disk space.

    If you renamed the folder of the corrupted index files, the original folders will be recreated with the restored backup files, thus doubling the required disk space.

  3. When it is not already the case, stop the CES service (see Stopping the CES Service).

  4. In a Command Prompt window: 

    1. Change to the Coveo Enterprise Search Bin folder (C:\Program Files\Coveo Enterprise Search 7\Bin by default).

    2. Run the CES service in restore mode with the following command:

      CESService7.exe -restore [path to backup folder]

      Examples:

      • You want to restore a compressed index backup that is in the E:\CESIndexBackup\Compressed\CESBackup-CES-09-30-2014-10-47-41 folder. You enter the command: 

        CESService7.exe -restore E:\CESIndexBackup\Compressed\CESBackup-CES-09-30-2014-10-47-41

      • You want to restore an uncompressed index backup that is in the E:\CESIndexBackup\Uncompressed\CESBackup-CES-09-30-2014-10-47-41 folder. You enter the command: 

        CESService7.exe -restore E:\CESIndexBackup\Uncompressed\CESBackup-CES-09-30-2014-10-47-41

      Important: You cannot restore backups made with versions prior to CES 7.0.7022 (September 2014 monthly release) since the BackupInfo file has a different format.

      Note: CES 7.0.6942– (August 2014)

      CESService7.exe -restore [path to backup ZIP file or folder] -verbose

      Examples:

      • You want to restore a compressed index backup that is in the E:\CESIndexBackup\Backup20140730.zip file. You enter the command: 

        CESService7.exe -restore E:\CESIndexBackup\Backup20140730.zip -verbose

      • You want to restore an uncompressed index backup that is in the E:\CESIndexBackup\Backup20140730 folder. You enter the command: 

        CESService7.exe -restore E:\CESIndexBackup\Backup20140730 -verbose

      The -verbose parameter at the end is necessary if you want to be notified when the backup is restored.

      The backed up index files are restored to their original location, overwriting files if they are still there.

      The following dialog box appears when the restore process is completed.

      Important: If the backup restore fails or is interrupted, you will not be able to restart the CES service until you successfully restore an index or delete it and rebuild it.

  5. When the restore operation is completed, restart the CES service (see Starting the CES Service).

People who viewed this topic also viewed