[ 
https://issues.apache.org/jira/browse/SOLR-6637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14494119#comment-14494119
 ] 

Varun Thacker commented on SOLR-6637:
-------------------------------------

Sample Restore API Usage - 
{{http://localhost:8983/solr/techproducts/replication?command=restore&name=backup_name}}

Parameters for the api -
{{location}} - The location where the backup index. If not specified it looks 
for backups in Solr's data directory.
{{name}} - The name of the backed up index snapshot to be restored. If the name 
is not provided it looks for backups with snapshot.<timestamp> format in the 
location directory. It picks the latest timestamp backup in that case.

You can check the status of the operation with the following call -
{{http://localhost:8983/solr/techproducts/replication?command=restorestatus}}

Sample output for the restore API -
{code}
<?xml version="1.0" encoding="UTF-8"?>
<response>
   <lst name="responseHeader">
      <int name="status">0</int>
      <int name="QTime">0</int>
   </lst>
   <lst name="restorestatus">
      <str name="snapshotName">snapshot.ab</str>
      <str name="status">success</str>
   </lst>
</response>
{code}

The status value can be "In Progress" , "success" or "failed". If it failed 
then an "exception" will also be sent in the response.

> Solr should have a way to restore a core
> ----------------------------------------
>
>                 Key: SOLR-6637
>                 URL: https://issues.apache.org/jira/browse/SOLR-6637
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Varun Thacker
>            Assignee: Varun Thacker
>             Fix For: Trunk, 5.2
>
>         Attachments: SOLR-6637.patch, SOLR-6637.patch, SOLR-6637.patch, 
> SOLR-6637.patch, SOLR-6637.patch, SOLR-6637.patch, SOLR-6637.patch, 
> SOLR-6637.patch, SOLR-6637.patch, SOLR-6637.patch
>
>
> We have a core backup command which backs up the index. We should have a 
> restore command too. 
> This would restore any named snapshots created by the replication handlers 
> backup command.
> While working on this patch right now I realized that during backup we only 
> backup the index. Should we backup the conf files also? Any thoughts? I could 
> separate Jira for this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to