05-29-2013 02:27 AM
06-05-2013 10:43 AM
solr.backup.alfresco.remoteBackupLocation=${dir.root}/solrBackup/alfresco
solr.backup.archive.remoteBackupLocation=${dir.root}/solrBackup/archive
# the backup path
solr.backup.alfresco.remoteBackupLocation=${dir.root}/solrBackup/alfresco
solr.backup.archive.remoteBackupLocation=${dir.root}/solrBackup/archive
# the number of backups to keep
solr.backup.alfresco.numberToKeep=3
solr.backup.archive.numberToKeep=3
# the backup scheduler
solr.backup.alfresco.cronExpression=0 0 2 * * ?
solr.backup.archive.cronExpression=0 0 4 * * ?
03-16-2019 05:53 PM
Putting this here in case someone was trying to find what I was after.
--
If you want to restore solr4 indexes from solr4Backup folder follow these steps
(works for Alfresco Community 5.2 on centos 7 64 bit)
1. stop solr / tomcat
sudo service alfresco stop tomcat
2. delete current indexes usually stored in {alf_data}/solr4/index. check 'data.dir.root' setting in alfresco-global.properties
cd /opt/alfresco-community/alf_data/solr4
sudo rm -rf index/workspace/SpacesStore/index/*
sudo rm -rf index/archive/SpacesStore/index/*
3. restore backups from solr4Backup folder. usually stored {alf_data}/solr4Backup
cd /opt/alfresco-community/alf_data/solr4Backup
sudo cp -R alfresco/{some snap shot}/* ../solr4/index/workspace/SpacesStore/index/
sudo cp -R archive/{some snap shot}/* ../solr4/index/archive/SpacesStore/index/
4. start solr / tomcat
sudo service alfresco start tomcat
more info
Solr directory structure | Alfresco Documentation
Performing a full reindex with Solr | Alfresco Documentation
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.