We're using solr 3.6 replication with 2 servers - a master and a slave - and we're currently looking for the way to do clean backups.
As the wiki says so, we can use a HTTP command to create a snapshot of the master like this: http://myMasterHost/solr/replication?command=backup
But we still have some questions:
What is the benefit of the
backup
command on a classic shell script copying the index files?The command only backups the indexes; is it possible to copy also the
spellchecker
folder? is it needed?Can we create the snapshot while the application is running, so while there are potential index updates?
- When we have to restore the servers from the backup, what do we have to do on the slave?
- just copy the snapshot in its index folder, and removing the
replication.properties
file (or not)? - ask for a fetchindex through the HTTP command
http://mySlave/solr/replication?command=fetchindex
? - just empty the slave index folder, in order to force a full replication from the master?
- just copy the snapshot in its index folder, and removing the