I made backups with the following command:

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

I double checked that I had made the backup, and I had a backup.

To test the restore function, I deleted documents with the following
command:

sudo -u solr curl http://localhost:8983/solr/debt/update -H "Content-type:
text/xml" --data-binary '<delete><query>*:*</query></delete>

I stopped and started the service to verify that there are 0 documents in
the debt core.

Then I ran the following command:

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

response:

 "responseHeader":{
    "status":0,
    "QTime":4},
  "status":"OK"}

Then I went to the web API to check the amount of documents I had on the
core. It still says 0.

I stopped and started the service to just be sure that that wasn't the
problem, but it still says there are 0 documents.

Am I missing a step in how i restore a backup?

Thanks,

Rhys

Reply via email to