[Geoserver-users] Adding another directory to GEOSERVER_DATA_DIR

Hello

Is it possible to add multiple paths to GEOSERVER_DATA_DIR in web.xml so that GeoServer would point to multiple locations?

Regards,
Ammar

Hi Ammar,
It depends on why you want to do this.
I believe that the GeoServer configuration stuff should all be in the same location; if it’s not then Bad Things ™ will happen (namely GeoServer will likely get unreliable).

However, if you want to put your raw data (i.e. shapefiles, geoTiffs etc) somewhere other than in the GEOSERVER_DATA_DIR, this is perfectly possible and doesn’t need any configuration in web.xml. Place them wherever you want and point to them when creating a new store.

Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 4 March 2014 14:57, Ammar <ammar83_h@anonymised.com> wrote:

Hello

Is it possible to add multiple paths to GEOSERVER_DATA_DIR in web.xml so that GeoServer would point to multiple locations?

Regards,
Ammar


Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ammar it is technically possible to do this at the coding level (when embedding GeoServer into a larger J2EE application).

However … I just finished removing this unused functionality on master (since it just added complexity and there was way for non developers to use the functionality).

It is fairly common to have one GEOSERVER_DATA_DIRECTORY (to manage your configuration) and a separate folder for all your spatial data. To set this up you end up with absolute paths when configuring stores. This is a good setup as you can quickly backup your geoserver configuration.

There are also a few extra environmental variable that control things like the GeoWebCache “cache” location, so these folders can be placed beside the geoserver data directory (and thus not backed up).

···

Jody Garnett

On Wed, Mar 5, 2014 at 1:57 AM, Ammar <ammar83_h@anonymised.com> wrote:

Hello

Is it possible to add multiple paths to GEOSERVER_DATA_DIR in web.xml so that GeoServer would point to multiple locations?

Regards,
Ammar


Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users