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
<install path>
\CAS\<version>\bin<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-component
task with the-t
option with an argument ofRecordStore
, 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 acrawlId
ofTest
, 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-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.
Write the data into the Record Store instance by typing
recordstore-cmd.bat
(for Windows), orrecordstore-cmd.sh
(for UNIX) and specify thewrite
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.