<p dir="ltr">Thanks a lot Paolo, I had not noticed that.</p>
<div class="gmail_quote">El abr. 19, 2016 14:51, "Paolo Corti" <<a href="mailto:pcorti@gmail.com">pcorti@gmail.com</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can recover all of the lost SLD from the layers_styles table in<br>
the database.<br>
<br>
For each layer in the layers_layer table you can find all of the associated<br>
SLD styles, in the layers_styles table (sld_text<br>
field). For each layer you can detect the default style from the<br>
default_style field in the layers_layer table.<br>
<br>
Basically you will need to create an sld for each of that styles in<br>
GeoServer and associate the default one to the GeoServer layer.<br>
<br>
You could use the gsconfig library to accomplish this task, or the<br>
GeoServer REST API directly.<br>
Or by hand (sigh)<br>
<br>
p<br>
<br>
On Tue, Apr 19, 2016 at 2:14 PM, Israel López <<a href="mailto:asralf@gmail.com">asralf@gmail.com</a>> wrote:<br>
> Could you tell me how to do it Paolo?? Because I had to remade it one by one<br>
> again...<br>
><br>
> El abr. 18, 2016 9:44, "Paolo Corti" <<a href="mailto:pcorti@gmail.com">pcorti@gmail.com</a>> escribió:<br>
>><br>
>> I would add that also SLD files are synced with the GeoNode database,<br>
>> so in case you need to restore styles you should be able to do it.<br>
>> p<br>
>><br>
>><br>
>> On Thu, Apr 14, 2016 at 1:46 AM, Simone Dalmasso<br>
>> <<a href="mailto:simone.dalmasso@gmail.com">simone.dalmasso@gmail.com</a>> wrote:<br>
>> > hi Israel,<br>
>> ><br>
>> > you probably cannot recover geoserver but somehow rebuild it, as all the<br>
>> > vector layers are in the db you can connect back a fresh geoserver<br>
>> > manually<br>
>> > creating the store. For raster data check if you have a copy in var www<br>
>> > geonode uploaded layer, and you can re upload them.<br>
>> ><br>
>> > hope it helps<br>
>> ><br>
>> > 2016-04-14 4:37 GMT+02:00 Israel López <<a href="mailto:asralf@gmail.com">asralf@gmail.com</a>>:<br>
>> >><br>
>> >> Hi devs, well I'm in trouble... Accidentally delete the directory<br>
>> >> geoserver<br>
>> >> at tomcat7 webapps,.. In fact, It was deleted the geoserver.war and<br>
>> >> then<br>
>> >> the geoserver directory.<br>
>> >><br>
>> >> Do you know some way to recover my geoserver???<br>
>> >><br>
>> >> The databases are ok<br>
>> >><br>
>> >> I would appreciate any ideas, thanks.<br>
>> >><br>
>> >> _______________________________________________<br>
>> >> geonode-users mailing list<br>
>> >> <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
>> >> <a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
>> >><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Simone<br>
>> ><br>
>> > _______________________________________________<br>
>> > geonode-users mailing list<br>
>> > <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
>> > <a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Paolo Corti<br>
>> Geospatial software developer<br>
>> web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br>
>> twitter: @capooti<br>
>> skype: capooti<br>
<br>
<br>
<br>
--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</blockquote></div>