You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "sandesh.yapuram" <sa...@seclore.com> on 2018/04/13 11:28:12 UTC

What are other options for index backup/replication?

Hello,
I have an application that uses lucene indexes and we generate a single
index for all data.
I want to take a weekly *local* backup of the index quitely and
asynchronously.
So far I've tried:
1. The replicator module - I found it very complicated for what I just want
to copy and paste indexes once in a week. I don't want to introduce a new
framework and much code change.
2. I tried the SnapshotDeletionPolicy by taking the files off the
IndexCommit and copying all of them into backup folder. But I'm not sure if
this is a cleaner way to do it since the replicator module is performing lot
of other stuff behind the scene.

Are there any other strategies I can try out?




--
Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Developer-f564358.html

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


Re: What are other options for index backup/replication?

Posted by Jan Høydahl <ja...@cominvent.com>.
Your question is better suited for the java-user@lucene mailing list ...

See https://home.apache.org/~hossman/#java-user

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

> 13. apr. 2018 kl. 13:28 skrev sandesh.yapuram <sa...@seclore.com>:
> 
> Hello,
> I have an application that uses lucene indexes and we generate a single
> index for all data.
> I want to take a weekly *local* backup of the index quitely and
> asynchronously.
> So far I've tried:
> 1. The replicator module - I found it very complicated for what I just want
> to copy and paste indexes once in a week. I don't want to introduce a new
> framework and much code change.
> 2. I tried the SnapshotDeletionPolicy by taking the files off the
> IndexCommit and copying all of them into backup folder. But I'm not sure if
> this is a cleaner way to do it since the replicator module is performing lot
> of other stuff behind the scene.
> 
> Are there any other strategies I can try out?
> 
> 
> 
> 
> --
> Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Developer-f564358.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 


Re: What are other options for index backup/replication?

Posted by Shawn Heisey <ap...@elyograg.org>.
On 4/13/2018 5:28 AM, sandesh.yapuram wrote:
> I have an application that uses lucene indexes and we generate a single
> index for all data.
> I want to take a weekly *local* backup of the index quitely and
> asynchronously.

Jan is correct that this mailing list isn't the right place for your
question.

Here's an idea, though:

If your program is running on an OS and filesystem that supports hard
links (Linux being a prime example), one thing you can do is make a
hardlink copy of your index directory, and then copy from that hardlink
copy to a backup location.

Making hardlink copies is near-instant process, and once it's made, you
can continue to update the index while you are making a backup of the
hardlink copy.  Then once your backup is made, delete the hardlink copy.

If you're on Windows or another OS that doesn't readily support hard
links, you could look into how Solr creates backups of Lucene indexes
for SolrCloud.  All that source code is available -- it's in the same
source repository as Lucene.

Thanks,
Shawn


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