Hello Kaushal!

I think best would be to ask this in an Apache Solr mailing list.
Here we mostly know about ZooKeeper :)

I know that Solr is storing many configurations (including full config
files) in ZooKeeper. To backup everything, you would need to export all the
content from ZooKeeper under e.g. the "/solr" ZNode. We don't have such a
recursive backup / restore solution in ZooKeeper. We mainly support the
backup and restore of the whole ZooKeeper data tree. One can create some
recursive script to achieve this (e.g. using the official ZooKeeper
clients, or other clients listed here -
https://cwiki.apache.org/confluence/display/zookeeper/zkclientbindings . I
typically use kazoo for custom scripts like this).

But actually much better would be to do the backup and restore on Solr
level. I'm not exactly sure about the best practices, but here are some
links to the official Solr documentation that might be helpful:
-
https://solr.apache.org/guide/8_11/using-zookeeper-to-manage-configuration-files.html
- https://solr.apache.org/guide/8_11/collections-api.html
- https://solr.apache.org/guide/8_11/collection-management.html#backup

Best regards,
Máté

On Fri, Sep 16, 2022 at 5:21 PM Kaushal Shriyan <[email protected]>
wrote:

> Hi,
>
> I am running Solr 8.11.2 (2 nodes) and Zookeeper version: 3.7.0 ( 3 nodes
> -> 1 Leader and 2 Followers) on Linux release 7.9.2009 (Core).
>
> Is there a way to back up the collections and configsets in Zookeeper
> version: 3.7.0 ( 3 nodes -> 1 Leader and 2 Followers) on Linux release
> 7.9.2009 (Core) as per the details below?
>
> #./zkCli.sh
> /bin/java
> Connecting to localhost:2181
> Welcome to ZooKeeper!
> JLine support is enabled
>
> WATCHER::
>
> WatchedEvent state:SyncConnected type:None path:null
> [zk: localhost:2181(CONNECTED) 0] ls /
> solr        zookeeper
> [zk: localhost:2181(CONNECTED) 0] ls /solr/co
> *collections*   *configs*
> [zk: localhost:2181(CONNECTED) 0]
>
> Thanks in advance. Please guide and I look forward to hearing from you.
>
> Best Regards,
>
> Kaushal
>

Reply via email to