I created a new workspace and copied the styles directory from another server, but I don’t see the copied styles listed when I click the styles link. What do I need to add to get them to appear?
That is why it makes sense to copy both directories, 'styles' and
'workspace' otherwise you will have layers that reference a style that does
not exist and styles that are not used by your layers and the name does not
matter as the connection is via the ID above.
Cheers
Christian
-----
____________________________
Dr Christian Maul
Project Manager
Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000
which is why it makes sense to copy always both, the 'styles' directory and
the 'workspaces' including their subdirectories. Otherwise you will have
layers without valid styles and styles without layers.
The names of styles do not matter for geoserver internally.
Actually there is more to it, which is the integrity between workspaces and
stores and layers and layergroups and styles. And, if you reference for
instance shapefiles and not just databases the data directory as well.
Because of that I thought it always safer to copy the entire data directory
and then update 'www', 'plugins', 'security', 'user_projections' and all the
other stuff when updating geoserver.
Cheers
Christian
-----
____________________________
Dr Christian Maul
Project Manager
Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000