Backup of a Solr index

2008-01-02 Thread Jörg Kiegeland
Is there a standard way to dump the Solr index to a file or to a directory as backup, and to import a such saved index to another Solr index later? Another question I have, is whether one is allowed to copy the /data/index folder while the Solr server is still running, as easy alternative t

RE: Backup of a Solr index

2008-01-02 Thread Charlie Jackson
Jörg Kiegeland [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 02, 2008 3:17 AM To: solr-user@lucene.apache.org Subject: Backup of a Solr index Is there a standard way to dump the Solr index to a file or to a directory as backup, and to import a such saved index to another Solr index

Re: Backup of a Solr index

2008-01-02 Thread Mike Klaas
.org Subject: Backup of a Solr index Is there a standard way to dump the Solr index to a file or to a directory as backup, and to import a such saved index to another Solr index later? Another question I have, is whether one is allowed to copy the /data/index folder while the Solr server is st

Re: Backup of a Solr index

2008-01-03 Thread Jörg Kiegeland
Charlie Jackson wrote: Solr indexes are file-based, so there's no need to "dump" the index to a file. But however one has first to shutdown the Solr server before copying the index folder? In terms of how to create backups and move those backups to other servers, check out this page http://

RE: Backup of a Solr index

2008-01-03 Thread Charlie Jackson
ry 03, 2008 11:00 AM To: solr-user@lucene.apache.org Subject: Re: Backup of a Solr index Charlie Jackson wrote: > Solr indexes are file-based, so there's no need to "dump" the index to a > file. > But however one has first to shutdown the Solr server before copying the i

Re: Backup of a Solr index

2008-01-04 Thread Jörg Kiegeland
If you want to copy the hard files from the data/index directory, yes, you'll probably want to shut down the server first. You may be able to get away with leaving the server up but stopping any index/commit operations, but I could be wrong. How do I stop remote clients to do index/commit

Re: Backup of a Solr index

2008-01-04 Thread Yonik Seeley
On Jan 4, 2008 8:44 AM, Jörg Kiegeland <[EMAIL PROTECTED]> wrote: > > If you want to copy the hard files from the data/index directory, yes, > > you'll probably want to shut down the server first. You may be able to get > > away with leaving the server up but stopping any index/commit operations,

Re: Backup of a Solr index

2008-01-04 Thread Jörg Kiegeland
A postCommit hook (configured in solrconfig.xml) is called in a safe place for every commit. You could have a program as a hook that normally did nothing unless you had previously signaled to make a copy of the index. Then I will give the postCommit trigger a try and hope that while the trig