I've written a java client that utilizes the rest interface to copy the
entire geoserver instance. I'm still improving it, but that this point it
can copy all of the configuration from one server instance, and distribute
that configuration to N number of other instances. It also creates a zip
file of the configuration which it can also distribute from as if it was
the source server. This is helpful for roll-back operations, or
distributing to other networks. I'm currently running over 12 instances of
geoserver on desperate networks and nodes, this allows me to setup one
geoserver instance with the GUI, then run the script and makes all other
instances on that network mirror the config. There are a couple
limitations at this point:
1) it doesn't get shapefiles
2) it is a copy of the config so if you want to specify a different
database connection you have to use JNDI which is perfect for me, but
perhaps not everyone.
https://github.com/GEOINT/geoserver-configuration-manager
Post by maw269Workspace Copying instructions
- Copy and rename existing workspace folder
- Open namespace.xml and fix <prefix> and <uri> params to match new
workspace folder name
- i.e. if you renamed the workspace from "wsp-myproject" to
"wsp-yourproject" the <prefix> becomes "wsp-yourproject" and the <uri>
becomes "http://yourdomain.com/wsp-yourproject"
- Open the workspace.xml and fix <name> param to match new workspace folder
name
- Open the datastore.xml files of any Database connections and delete the
Password and fix the rest of the params
- Delete any cached gwc tiles
- Open all the remaining *.xml files from new workspace folder
Find: </id>
Replace: xyz</id>
Basically, add any unique identifier before the </id>
- Save all
- Restart GeoServer or reload configuration
--
http://osgeo-org.1560.x6.nabble.com/Cloning-a-workspace-tp4933664p5173396.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users