To copy a Solr index, I believe that you can simply copy the files from one Solr index to another. For example, if you had two VuFind instances and wanted the same bibliographic data in both, you could just copy /usr/local/vufind1/solr/biblio/* to /usr/local/vufind2/solr/biblio/*. Obviously, you wouldn't want to perform this copy at a time that the index was unstable (i.e. in the middle of having new records added, or something of the sort).
If you are copying an index from one server to another, you can use rsync -- this used to be standard practice for many Solr installations prior to Solr 1.4's built-in replication features.
If you are interested in keeping multiple indexes in sync over time (as opposed to simply doing a one-time copy to establish a baseline), I recommend looking into Solr 1.4's new built-in replication feature:
I haven't worked with this feature myself, but if you have questions about it, you can probably go to the solr-user list to get more informed assistance.
As far as changing the port number goes, jetty.xml is the only change needed for the Solr side of things; if VuFind is involved, see this page for all the details:
> -----Original Message-----
> From: Bernhard Eversberg [mailto:ev@...]
> Sent: Monday, May 17, 2010 8:49 AM
> To: vufind-general@...
> Subject: [VuFind-General] A Solr question: multiple instances
> What's the best way to manage multiple instances of Solr indexes?
> I want to run two or more databases on one machine and have started
> with the most basic Solr installation with the example index.
> So, how to replicate the example index for another database?
> What directories are needed, what files, what settings? Nothing
> fancy, just the basic Solr index.
> If it is all about having different port numbers, then is it
> sufficient to change the setting in the etc/jetty.xml, or
> anywhere else? Anything to be compiled or just settings?
> I'm not really familiar yet with Solr, so need something more than
> vague hints ...
> This is not strictly about VuFind, but I'm sure someone will be able to
> put me to the right track...
> Thanky you
> VuFind-General mailing list