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 wojtekpia <wo...@hotmail.com> on 2009/09/08 18:56:15 UTC

Backups using Replication

I'm trying to create data backups using the ReplicationHandler's built in
functionality. I've configured my master as 
http://wiki.apache.org/solr/SolrReplication documented :

<requestHandler name="/replication" class="solr.ReplicationHandler" >
    <lst name="master">
...
        <str name="backupAfter">optimize</str>
...
    </lst>
</requestHandler>


but I don't see any backups created on the master. Do I need the snapshooter
script available? I did not deploy it on my master, I assumed it was part of
the 'old' way of doing replication.

If I invoke the backup command over HTTP
(http://master_host:port/solr/replication?command=backup) then it seems to
work - I get directories like "snapshot.20090908094423".

Thanks,

Wojtek
-- 
View this message in context: http://www.nabble.com/Backups-using-Replication-tp25350083p25350083.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Backups using Replication

Posted by wojtekpia <wo...@hotmail.com>.
I've verified that renaming backAfter to snapshot works (I should've checked
before asking). Thanks Noble!


wojtekpia wrote:
> 
> 
> <requestHandler name="/replication" class="solr.ReplicationHandler" > 
>     <lst name="master"> 
> ... 
>         <str name="snapshot">optimize</str> 
> ... 
>     </lst> 
> </requestHandler> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Backups-using-Replication-tp25350083p25407846.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Backups using Replication

Posted by wojtekpia <wo...@hotmail.com>.
Do you mean that it's been renamed, so this should work?

<requestHandler name="/replication" class="solr.ReplicationHandler" > 
    <lst name="master"> 
... 
        <str name="snapshot">optimize</str> 
... 
    </lst> 
</requestHandler> 


Noble Paul നോബിള്‍  नोब्ळ्-2 wrote:
> 
> before that backupAfter was called "snapshot"
> 

-- 
View this message in context: http://www.nabble.com/Backups-using-Replication-tp25350083p25407695.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Backups using Replication

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@corp.aol.com>.
ok this was committed on July 15, 2009

before that backupAfter was called "snapshot"

On Thu, Sep 10, 2009 at 10:14 PM, wojtekpia <wo...@hotmail.com> wrote:
>
> I'm using trunk from July 8, 2009. Do you know if it's more recent than that?
>
>
> Noble Paul നോബിള്‍  नोब्ळ्-2 wrote:
>>
>> which version of Solr are you using? the "backupAfter" name was
>> introduced recently
>>
>
> --
> View this message in context: http://www.nabble.com/Backups-using-Replication-tp25350083p25386886.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com

Re: Backups using Replication

Posted by wojtekpia <wo...@hotmail.com>.
I'm using trunk from July 8, 2009. Do you know if it's more recent than that?


Noble Paul നോബിള്‍  नोब्ळ्-2 wrote:
> 
> which version of Solr are you using? the "backupAfter" name was
> introduced recently
> 

-- 
View this message in context: http://www.nabble.com/Backups-using-Replication-tp25350083p25386886.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Backups using Replication

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@corp.aol.com>.
which version of Solr are you using? the "backupAfter" name was
introduced recently

On Tue, Sep 8, 2009 at 10:26 PM, wojtekpia<wo...@hotmail.com> wrote:
>
> I'm trying to create data backups using the ReplicationHandler's built in
> functionality. I've configured my master as
> http://wiki.apache.org/solr/SolrReplication documented :
>
> <requestHandler name="/replication" class="solr.ReplicationHandler" >
>    <lst name="master">
> ...
>        <str name="backupAfter">optimize</str>
> ...
>    </lst>
> </requestHandler>
>
>
> but I don't see any backups created on the master. Do I need the snapshooter
> script available? I did not deploy it on my master, I assumed it was part of
> the 'old' way of doing replication.
>
> If I invoke the backup command over HTTP
> (http://master_host:port/solr/replication?command=backup) then it seems to
> work - I get directories like "snapshot.20090908094423".
>
> Thanks,
>
> Wojtek
> --
> View this message in context: http://www.nabble.com/Backups-using-Replication-tp25350083p25350083.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com