I actually have a patch for solr config parser which allows you to
use context environment variables in the solrconfig.xml
I generally use it for development when I'm working with multiple
instances and different data dirs. I'll add it to jira today if you
want it.
That would be nice.
However I cannot believe that one cannot configure this by
someconfiguration file by now - what if only one index needs to be
backuped and the other index does not need to be backuped because it
carries only redundant information of some other data source, like in my
case. And if all data is put in one folder, you can backup only both
indexes together..