Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (1)
avatar
New Member

Solr core/shard backup and restore function ONLY became available after version 5.2 . See JIRA: https://issues.apache.org/jira/browse/SOLR-6637

To manually backup and restore shards, please follow the steps : Assumes a SolrCloud cluster has 4 cores and 2 node, which 2 cores on each node. (2 shards, with replicationFactor=2) Back-up each node:
http://server1:8983/solr/collection/replication?command=backup&location=location1&name=backup1 

http://server2:8983/solr/collection/replication?command=backup&location=location2&name=backup2
Create new collection with 2 shards and replicationFactor=2
http://server:8983/solr/admin/collections?action=CREATE&name=newCollection&numShards=2&replicationFa...
Restore from each backup:
http://server1:8983/solr/newCollection/replication?command=restore&location=location1&name=backup1 

http://server2:8983/solr/collection/replication?command=restore&location=location2&name=backup2
Add replicas to each shard
http://server:8983/solr/admin/collections?action=ADDREPLICA&collection=newCollection&shard=shard2&no... 

http://server:8983/solr/admin/collections?action=ADDREPLICA&collection=newCollection&shard=shard1&no...
In the API commands where we just have "server" without 1 or 2, it means you can issue the command from either server.
3,163 Views
Version history
Last update:
‎03-31-2017 06:32 PM
Updated by:
Contributors