Yes, I use the replication only for backup with this call:

http://host:8080/solr/replication?command=backup&location=/home/jboss/backup 

It's work fine but the server must be always up... it's an http call...
I tried also the script 'backup' but it creates hard links and are not 
recommended!


-----Messaggio originale-----
Da: Jonathan Rochkind [mailto:rochk...@jhu.edu] 
Inviato: lunedì 29 novembre 2010 19.22
A: solr-user@lucene.apache.org
Oggetto: Re: Solr Hot Backup

In Solr 1.4, I think the replication features should be able to 
accomplish your goal, and will be easier to use and more robust.

On 11/29/2010 10:22 AM, Upayavira wrote:
> As I understand it, those tools are more Solr 1.3 related, but I don't
> see why they shouldn't work on 1.4.
>
> I would say it is very unlikely that you will corrupt an index with
> them.
>
> Lucene indexes are "write once", that is, any one index file will never
> be updated, only replaced. This means that taking a backup is actually
> exceptionally easy, as (on Unix at least) you can create a copy of the
> index directory with hard links, which takes milliseconds, even for
> multi-gigabyte indexes. You just need to make sure you are not
> committing while you take your backup, and it looks like those tools
> will take care of that for you.
>
> Another perk is that your backups won't take any additional disk space
> (just the space for the directory data, not the files themselves). As
> your index changes, disk usage will gradually increase though.
>
> Upayavira
>
> On Mon, 29 Nov 2010 16:13 +0100, "Rodolico Piero"
> <p.rodol...@vitrociset.it>  wrote:
>> Hi all,
>>
>> How can I backup indexes Solr without stopping the server?
>>
>> I saw the following link:
>>
>>
>>
>> http://wiki.apache.org/solr/SolrOperationsTools
>> <http://wiki.apache.org/solr/SolrOperationsTools>
>>
>> http://wiki.apache.org/solr/CollectionDistribution
>>
>>
>>
>> but I'm afraid that running these scripts 'on the fly' indexes could be
>> corrupted.
>>
>> Thanks,
>>
>> Piero.
>>
>>
>>
>>
>>

Reply via email to