How to Backup and Restore Solr
Note: This applies to
DocuShare 7.5 installations that are running Solr.
Backup
using the replication API
Note:
This is done using the command URL or curl commands.
Backup
command
http://localhost:8983/solr/DocuShare_shard1_replica_n1/replication?command=backup&name=DS_shard1&location=C:\Solr\backup
http://localhost:8983/solr/DocuShare_shard2_replica_n2/replication?command=backup&name=DS_shard2&location=C:\Solr\backup
The
"name" parameter is used to generate the backup snapshot name. It is
in the form snapshot.<name>. Check that the location (C:\Solr\backup in
this case) has a file named snapshot.DS_shard1 and snapshot.DS_shard2
Status of
these commands can be checked here:
http://localhost:8983/solr/DocuShare_shard1_replica_n1/replication?command=details
http://localhost:8983/solr/DocuShare_shard2_replica_n2/replication?command=details
Restoring
Solr
To do
restore via the replication API:
http://localhost:8983/solr/DocuShare_shard1_replica_n1/replication?command=restore&name=DS_shard1&location=C:\Solr\backup
http://localhost:8983/solr/DocuShare_shard2_replica_n2/replication?command=restore&name=DS_shard2&location=C:\Solr\backup
Solution Published:
January 11, 2021
Solution ID: 2092
|