lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: Proper way to backup solr.
Date Tue, 11 Nov 2014 14:18:17 GMT
On 11/11/2014 1:45 AM, elmerfudd wrote:
> First, I want to thank you for your response!
> 
> can you provide more information about the suggested hardlink  solution?
> What are the advantages and disadvantages using it?
> 
> can you provide an example please?
> 
> 
> meanwhile try to read about it and test it myself asap.

Something like this:

mkdir -p ${BACKUPDIR}/corename/index
rm -f ${BACKUPDIR}/corename/index/*
cp -pl ${SOLRHOME}/corename/data/index/* ${BACKUPDIR}/corename/index/.

This does not include necessary additional steps like renaming previous
backups to set up an auto-rotating archive.  Because only you know what
your requirements are when it comes to backup archives, you'll need to
fill that part in.  As already mentioned, the source and destination
must be on the same filesystem.

There are very few disadvantages to this solution.  It maintains
instantaneous backups of previous index states with as little overhead
as possible.

Note that if you have a filesystem with good built-in snapshot support
(typically zfs or btrfs), you can use filesystem snapshots instead, with
much the same effect.

Thanks,
Shawn


Mime
View raw message