lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Thacker (JIRA)" <>
Subject [jira] [Commented] (SOLR-6637) Solr should have a way to restore a core
Date Mon, 03 Nov 2014 14:19:34 GMT


Varun Thacker commented on SOLR-6637:

bq. what is the usecase for restoring from the dataDir itself?

What I meant here was - if location param is not provided it would see if the backup index
is present under dataDir/backupName .

bq. Remove any files in the current directory which does not belong to the segment .

This is what I do here - Once all the files from the backup location have been successfully
copied over the current index, there might be extra segment files from the current index lying
around. It gets cleaned up in cleanupOldIndexFiles() where we take the name of the segment
file from the backup index and see which files are extra. We then remove these extra segment

> Solr should have a way to restore a core
> ----------------------------------------
>                 Key: SOLR-6637
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Varun Thacker
>         Attachments: 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
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message