You should use Lucene's replicator module, which helps you take backups
from live snapshots of your index, even while indexing happens. You can
read about how to use it here:
http://shaierera.blogspot.co.il/2013/05/the-replicator.html

Shai

On Wed, Jan 13, 2016, 19:14 Erick Erickson <erickerick...@gmail.com> wrote:

> Just copy the index directory, it's self contained. I'd
> make sure I wasn't actively indexing to it and
> I'd committed all my indexing first, but that's all.
>
> On Wed, Jan 13, 2016 at 8:33 AM, 鞠朕 <juz...@wilddog.com> wrote:
> > Hi,    I am using Lucene to build a Full Text search system, I put the
> index file in some Directory in my server, Considering robust, I think i
> shouldbackup the index file in somewhere else. If the index file is broken,
> i can switch to the backup one.    Can you tell me how to do this, use what
> API, can you give me a simple demo.    Thanks,From juzhen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

Reply via email to