On Thu, Dec 12, 2019 at 3:49 AM sudhir kumar <gogikarsud...@gmail.com>
wrote:


> once you backup index with some location, you have to specify the same
> location to restore.
>
> ie in your case /tmp/solr is the location indexed was backed up , use same
> location for restore.
>
> you did not provide name so latest snapshot will be restored.
>
> curl '
>
> http://localhost:8983/solr/debt/replication?command=backup&location=/tmp/solr
> '
>
> snapshot is created at /tmp/solr/snapshot.2019xxxxxxxxxx
>
> execute below command, latest snapshot will be restored
> curl '
>
> http://localhost:8983/solr/debt/replication?command=restore&location=/tmp/solr
> <
> http://localhost:8983/solr/debt/replication?command=backup&location=/tmp/solr
> >
> '
>
>
I figured this out, but even when I specify location, and even name, I get
an OK from the status, but the index remains empty?

Commands used:

sudo -u solr curl '
http://localhost:8983/solr/debt/replication?command=backup
<http://localhost:8983/solr/gettingstarted/replication?command=backup&location=/tmp/solr>
&location=/tmp/solrbackups/debt/'

sudo -u solr curl
'http://localhost:8983/solr/debt/replication?command=restore&location=/tmp/solrbackups/debt/'



Thanks,

Rhys

Reply via email to