This task describes restoring one generation of baseline data into a Record Store instance and restoring the corresponding configuration file for the Record Store instance. This task does not describe restoring multiple generations or deltas between generations.

To restore the last generation of Endeca records:

  1. Start a command prompt and navigate to <install path>\CAS\<version>\bin (for Windows), or <install path>/CAS/<version>/bin (for UNIX).

  2. Create a new empty Record Store instance by typing component-manager-cmd.bat (for Windows), or component-manager-cmd.sh (for UNIX) and specify the create-component task with the -t option with an argument of RecordStore, and the-n option with a Record Store instance name of your choice.

    You need to repeat this step if your crawl configuration contains multiple Record Store instances. Also you should ensure that the name of each Record Store instance coordinates with the crawlId. For example, if you have a crawlId of Test, you create a Record Store instance named Test.

    For example:

    C:\Endeca\CAS\<version>\bin>component-manager-cmd.bat create-component 
     -n Test -t RecordStore
  3. Restore the configuration file for a Record Store instance by typing recordstore-cmd.bat (for Windows), or recordstore-cmd.sh (for UNIX) and specify the set-configuration task with the -a (or --instanceName) flag and the name of a Record Store instance and also the -f (or --file) flag and the XML file name that contains the configuration settings.

    For example:

    C:\Endeca\CAS\<version>\bin>recordstore-cmd.bat set-configuration -a Test -f C:\tmp\RSIbackup_configfile.xml
    Successfully set recordstore configuration.
  4. Write the data into the Record Store instance by typing recordstore-cmd.bat (for Windows), or recordstore-cmd.sh (for UNIX) and specify the write task with the -a (or --instanceName) flag and the name of a Record Store instance and also the -f (or --file) flag and the pathname of the file that contains the Endeca records.

    For example:

    C:\Endeca\CAS\<version>\bin>recordstore-cmd.bat write -a Test -f C:\tmp\RSIbackup.xml
    Wrote 2190 records.

Copyright © Legal Notices