the root directory (usually /home/repository) must be unique to only one server (no linking from different repository to the same location) because its indexes must match the DB contents
BE SURE THAT THE DB SNAPSHOT HAS BEEN DONE AT THE SAME TIME AS THE DATASTORE FILES SNAPSHOT
if tomcat is running, stop it possibly gently using the method startShutDown with admin certificate (this will finish the pending registrations and backup the statistics)
remove and recreate the used mysql database
import the data from the backup into that database
copy the files matching the db backup into the datastore directory or link to the directory structure where the files are available
if linking, be sure that the user running tomcat can read and write that location
remove the 3 directories (not enough to remove the content, the directories must be removed) called "index" inside ./workspaces/default ./workspaces/volatile and ./workspaces/metrics
start tomcat
at this point the webservice notices that the index directories are missing and re-starts the indexing. It may take around 15 minutes
verify that the logs (usually /tmp/eticsRepositoryWSLog.log) include "Repository service successfully initialized..."