I need to backup to a network file system to support recovery. I do not want the index on a network file system, so just mounting /var/solr/data isn't an option. I have attempted to set the location in the replication handler, but it is not working. I've tried all of these configurations.
<requestHandler name="/replication" class="solr.ReplicationHandler"> <lst name="leader"> <str name="replicateAfter">optimize</str> <str name="backupAfter">optimize</str> </lst> <int name="maxNumberOfBackups">2</int> <str name="commitReserveDuration">00:00:20</str> <lst name="default"> <str name="location">/var/i8s/backup/solr/${i8s.environment}/${ solr.core.name}</str> </lst> </requestHandler> <requestHandler name="/replication" class="solr.ReplicationHandler"> <lst name="leader"> <str name="replicateAfter">optimize</str> <str name="backupAfter">optimize</str> <str name="location">/var/i8s/backup/solr/${i8s.environment}/${ solr.core.name}</str> </lst> <int name="maxNumberOfBackups">2</int> <str name="commitReserveDuration">00:00:20</str> </requestHandler> <requestHandler name="/replication" class="solr.ReplicationHandler"> <lst name="leader"> <str name="replicateAfter">optimize</str> <str name="backupAfter">optimize</str> </lst> <int name="maxNumberOfBackups">2</int> <str name="commitReserveDuration">00:00:20</str> <str name="location">/var/i8s/backup/solr/${i8s.environment}/${ solr.core.name}</str> </requestHandler> The backups after optimize are happening, but they are going to the default locations, not the configured location. For example: 2022-08-04 17:19:52.053 INFO (Thread-14) [ ] o.a.s.h.SnapShooter Creating backup snapshot <not named> at file:///var/solr/data/contentPage/data/ I've confirmed that it isn't a path security issue, by verifying that all paths are allowed: 2022-08-05 12:29:03.873 INFO (main) [ ] o.a.s.c.CoreContainer Allowing use of paths: [_ALL_] How do I make backups go where I want?