lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhys J <rhyssha...@gmail.com>
Subject Re: backing up and restoring
Date Thu, 12 Dec 2019 15:31:02 GMT
On Thu, Dec 12, 2019 at 3:49 AM sudhir kumar <gogikarsudhir@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message