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 Grant Ingersoll <gs...@apache.org> on 2009/05/07 22:23:54 UTC

Backups using Java-based Replication (forced snapshot)

On the page http://wiki.apache.org/solr/SolrReplication, it says the  
following:
"Force a snapshot on master.This is useful to take periodic  
backups .command :  http://master_host:port/solr/replication? 
command=snapshoot"

This then puts the snapshot under the data directory.  Perfectly  
reasonable thing to do.  However, is it possible to have it take in a  
directory location and store the snapshot there?  For instance, I may  
want to have it write to a specific directory that is being watched  
for backup data.

Thanks,
Grant


--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
using Solr/Lucene:
http://www.lucidimagination.com/search


Re: Backups using Java-based Replication (forced snapshot)

Posted by pjaol <pj...@pjaol.com>.
Thinking the same last week, as I was tailoring the snapshooter.sh script.
The data directory should be kept for the temp snapshot, as a way to ensure
linking is occurring on the same device.
snapshooter.sh
     87 name=${data_dir}/${snap_name}
I think only this needs to be configurable for the final move.


Grant Ingersoll-6 wrote:
> 
> On the page http://wiki.apache.org/solr/SolrReplication, it says the  
> following:
> "Force a snapshot on master.This is useful to take periodic  
> backups .command :  http://master_host:port/solr/replication? 
> command=snapshoot"
> 
> This then puts the snapshot under the data directory.  Perfectly  
> reasonable thing to do.  However, is it possible to have it take in a  
> directory location and store the snapshot there?  For instance, I may  
> want to have it write to a specific directory that is being watched  
> for backup data.
> 
> Thanks,
> Grant
> 
> 
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com/
> 
> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
> using Solr/Lucene:
> http://www.lucidimagination.com/search
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Backups-using-Java-based-Replication-%28forced-snapshot%29-tp23434396p23447792.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Backups using Java-based Replication (forced snapshot)

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@corp.aol.com>.
makes sense. I'll open an issue

On Fri, May 8, 2009 at 1:53 AM, Grant Ingersoll <gs...@apache.org> wrote:
> On the page http://wiki.apache.org/solr/SolrReplication, it says the
> following:
> "Force a snapshot on master.This is useful to take periodic backups .command
> :  http://master_host:port/solr/replication?command=snapshoot"
>
> This then puts the snapshot under the data directory.  Perfectly reasonable
> thing to do.  However, is it possible to have it take in a directory
> location and store the snapshot there?  For instance, I may want to have it
> write to a specific directory that is being watched for backup data.
>
> Thanks,
> Grant
>
>
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com/
>
> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) using
> Solr/Lucene:
> http://www.lucidimagination.com/search
>
>



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