Script recreatedb.pl ships with LXR 1.0 and higher.
The bare minimum needed to reconstruct the LXR server is the master configuration file lxr.conf.
To mimimize the risk of inconsistency, save also the context file lxr.ctxt located in the custom.d/ directory.
The LXR configuration and database creation steps are replaced by the following procedure.
As mentioned above, you need at least the master configuration file lxr.conf and the context file lxr.ctxt. Put them into the custom.d/ directory.
recreatedb.pl creates a script custom.d/initdb.sh containing SQL instructions to rebuild all databases corresponding to the trees described in the master configuration file.
Should one of your trees be the Linux kernel, launch kernel architecture enumeration with this script.
--allurls
is recommended.
--reindexall
is only necessary on the failing
tree to force a clean database.
Web server configuration is done as usual. See here.
Use --help
option and experiment.
Script recreatedb.pl tries to restore a missing context (but does not save it to avoid creating a permanent inconsistency). This is done through a set of questions:
Choose the default Q
answer to eventually add an
--lxr-ctx=
option to designate an existing context
file in an unusual location.
Answer R
to enter the following interactive dialog:
After this dialog, recreatedb.pl proceeds as previously.