Unfortunately there isn't a good way to solve this. Your best bet is to trigger a backup before the nightly re-index using /replication?command=backup
The problem is the backup runs asynchronously so its hard to script a way to determine if the backup is finished or not. What we do is poll the replicationHandler with /replicaton?command=details and scrape the response until <str name="snapshotCompletedAt">timestamp_here</str> changes to a new timestamp. James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -----Original Message----- From: Artem Shnayder [mailto:artem....@gmail.com] Sent: Wednesday, March 28, 2012 1:59 PM To: solr-user@lucene.apache.org Subject: Re: DataImportHandler: backups prior to full-import My typical workflow is a once-a-day full-import with hourly delta-imports. Ideally, the backup would occur only during the full-import commits. Is there a way to differentiate in the replication handler? On Wed, Mar 28, 2012 at 11:54 AM, Dyer, James <james.d...@ingrambook.com>wrote: > I don't know of any effort out there to have DIH trigger a backup > automatically. However, you can set the replication handler to > automatically backup after each commit. This might solve your problem if > you aren't committing frequently. > > James Dyer > E-Commerce Systems > Ingram Content Group > (615) 213-4311 > > > -----Original Message----- > From: Artem Shnayder [mailto:artem....@gmail.com] > Sent: Wednesday, March 28, 2012 1:46 PM > To: solr-user@lucene.apache.org > Subject: DataImportHandler: backups prior to full-import > > Does anyone know of any work done to automatically run a backup prior to a > DataImportHandler full-import? > > I've asked this question on #solr and was pointed to > > https://wiki.apache.org/solr/SolrReplication?highlight=%28backup%29#HTTP_API > which > is helpful but is not an automatic backup in the context of full-import's. > I'm wondering if anyone else has done this work yet. > > -- Artem Shnayder >