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:
Start a command prompt and navigate to
(for Windows), or<install path>\CAS\<version>\bin(for UNIX).<install path>/CAS/<version>/binCreate a new empty Record Store instance by typing
component-manager-cmd.bat(for Windows), orcomponent-manager-cmd.sh(for UNIX) and specify thecreate-componenttask with the-toption with an argument ofRecordStore, and the-noption 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 acrawlIdofTest, you create a Record Store instance namedTest.For example:
C:\Endeca\CAS\<version>\bin>component-manager-cmd.bat create-component -n Test -t RecordStore
Restore the configuration file for a Record Store instance by typing
recordstore-cmd.bat(for Windows), orrecordstore-cmd.sh(for UNIX) and specify theset-configurationtask 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.
Write the data into the Record Store instance by typing
recordstore-cmd.bat(for Windows), orrecordstore-cmd.sh(for UNIX) and specify thewritetask 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.

