12-20-2016 07:38 AM
I'm a bit confused with backing up and restoring Solr indexes. When I'm backing up alfresco do I need to copy both solr4 and solr4backup directories? Then what do I need solr4backup for? Can I restore indexes from just solr4backup and if so, how do I do that? Solr4backup and solr have different layouts.
12-20-2016 07:55 AM
The SOLR index and backup indices should not have that different of layouts. There are just one or two more layers in the backup directory to manage multiple snapshots (backups from different dates). You should only ever use the backup folder in your custom backup scripts when Alfresco is running. Only if Alfresco (and SOLR) are stopped can you safely backup the actual index folder (in that case there is no need for the backup folder).
A backup can simply be restored by copying the data folders of the index snapshot you want back into the actual index folder while SOLR is stopped and start SOLR. It will then track and index any changes that have occurred since the snapshot was created.
12-20-2016 08:29 AM
Thanks for reply! I'll check layout again, probably I've just got lost.) One more related question: my dir_root directory points to an old installation dir.root=/opt/alfresco-5.0.d/alf_data, yet I have my solr indexes in a new installation folder /opt/alfresco-community/alf_data/solr4 and solr4backup in /opt/alfresco-5.0.d/alf_data/solr4Backup (where it should be). Is there a way to put solr indexes in old root directory, where solr4Backup lies?
12-20-2016 08:44 AM
Yes - simply stop SOLR, change configuration in solrcore.properties for each SOLR core, move the folders and restart.
12-20-2016 11:31 AM
Hi:
In addition to Axel Faust comment, changing SOLR indices location involves changing data.dir.root property in solrcore.properties for each core. But there are other directories under $ALF_HOME/alf_data/solr4 (content and model directories), whose locations are set in $ALF_HOME/tomcat/conf/Catalina/localhost/solr4.xml
Regards.
--C.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.