You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by solr2020 <ps...@gmail.com> on 2014/04/22 23:38:55 UTC

Solr data directory contains index backups

Hi,

We have a solrcloud where we have one shard and four replicas.We know that
Solr will create an index backup when something happens inside solrcloud. So
data directory contains more than one index folders. like

snapshot.20130920231746353
index.20130712112751477
index.2013.......

So after some time these extra files could be deleted?. how to identify the
current/actual index directory.This delete would impact anything?. Please
suggest.



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-data-directory-contains-index-backups-tp4132590.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr data directory contains index backups

Posted by Greg Walters <gr...@answers.com>.
None that I'm aware of. A bit of googling shows the accepted solution to be an external script via cron or something similar. I think I saw an issue open on Apache's Jira about this but can't find it now.

Thanks,
Greg

On Apr 25, 2014, at 4:37 PM, solr2020 <ps...@gmail.com> wrote:

> Thanks Greg. Is there any Solr configuration to do this periodically if any
> unused index copy or snapshot exists in data directory.?
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Solr-data-directory-contains-index-backups-tp4132590p4133221.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr data directory contains index backups

Posted by solr2020 <ps...@gmail.com>.
Thanks Greg. Is there any Solr configuration to do this periodically if any
unused index copy or snapshot exists in data directory.?



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-data-directory-contains-index-backups-tp4132590p4133221.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr data directory contains index backups

Posted by Greg Walters <gr...@answers.com>.
In the data/ directory there's frequently a .properties file that contains the name of the index.#### directory that solr is currently using. Most of the time you can safely delete all of the index.#### directories that aren't in the properties file. As an extra verification step you might want to run `lsof` and grep for the index.#### directories your considering removing prior to removal to see if the solr process currently has any files in the directory open.

Thanks,
Greg

On Apr 22, 2014, at 4:38 PM, solr2020 <ps...@gmail.com> wrote:

> Hi,
> 
> We have a solrcloud where we have one shard and four replicas.We know that
> Solr will create an index backup when something happens inside solrcloud. So
> data directory contains more than one index folders. like
> 
> snapshot.20130920231746353
> index.20130712112751477
> index.2013.......
> 
> So after some time these extra files could be deleted?. how to identify the
> current/actual index directory.This delete would impact anything?. Please
> suggest.
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Solr-data-directory-contains-index-backups-tp4132590.html
> Sent from the Solr - User mailing list archive at Nabble.com.