Yes, so far all done via the GUI I agree that using the rest api may be the best long term solution, and make it easier to deploy other instances so maybe we'll go down this path at some point. But when developing or doing add hoc changes, the GUI sure is nice :)
Thanks, charles On Nov 30, 2011, at 9:56 AM, [email protected] wrote: > I assume you configured your store and layers using the admin GUI. > > Personally, I use the Geoserver REST API (from a self written JAVA client) to > configure Geoserver. > > http://docs.geoserver.org/stable/en/user/restconfig/index.html > > If you invest some time to create REST scripts/clients, exercises like deep > copying a datastore are quite easy and you do not have to bother about the > ids. > > Christian > > > Zitat von Charles Galpin <[email protected]>: > >> I'd like to copy/clone a datastore to give access to a copy of my database >> for testing with all the same layers I have defined. Looking at >> datastore.xml it seems I'd need to simply >> >> 1. Shutdown geoserver >> 2. recursively copy the store directory to the new store name >> 3. In the new store, >> a) make the id unique (but how?) >> b) change the name to match the directory >> c) change the database name >> 4. start geoserver >> >> Will this work, and if yes, what is a safe way to change the id? Or do all >> the layers/featuretypes in the store also need new unique ids? If there is >> an easy way to make sure a unique id is generated I think it would still be >> quicker to go change all of them too (if possible) >> >> This seems like it would be a commonly requested feature as it is really >> laborious to recreate all your work if you just want a copy of what you >> have been doing against another db without running another instance of >> geoserver. >> >> thanks, >> charles >> >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure >> contains a definitive record of customers, application performance, >> security threats, fraudulent activity, and more. Splunk takes this >> data and makes sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d >> _______________________________________________ >> Geoserver-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
