Hi,
I tried running the backup-and-restore (2.11) community module on a geoserver with GeoGig repositories.
GeoGig uses resources to store the configuration of the geogig repositories. On the file system they are in “DATA-DIR/geogig/config/repos/” (a bunch of .xml files).
However, when I run the backup-and-restore, it doesn’t back these up (I couldnt find them in the .zip file and I get errors when restoring the catalog because they aren’t there).
Am I missing something?
Do I need to add an extension as mentioned here;
http://docs.geoserver.org/latest/en/user/community/backuprestore/extensions.html
Thanks,
Dave
Hi,
Backup / Restore relies on interface GeoServerPluginConfigurator [1] to know what configuration files a module need. So unless a certain module implements that interface Backup / Restore module will not do anything. I did a quick check and it seems to me that GeoGig doesn’t implement that interface so Backup / Restore will not do anything for that module.
Regarding the documentation page you cited; Backup / Restore provide three extension points:
-
The interface above (that is not specific to Bakcup / Restore) that allow modules to publish their configuration files.
-
Interfaces CatalogAdditionalResourcesReader [2] and CatalogAdditionalResourcesWriter [3] that can be used to do some extra work when handling a catalog resource.
-
Interface GenericTaskletHandler [4] that allows the contribution of a generic task that can do anything [5].
So (unless I miss anything … I’m not very familiar with the GeoGig module) GeoGig module needs to tell Backup / Restore module which configuration files need to be backup and restored.
Hope it helps.
Regards,
Nuno Oliveira
[1] https://github.com/geoserver/geoserver/blob/master/src/main/src/main/java/org/geoserver/config/GeoServerPluginConfigurator.java
[2] https://github.com/geoserver/geoserver/blob/master/src/community/backup-restore/core/src/main/java/org/geoserver/backuprestore/reader/CatalogAdditionalResourcesReader.java
[3] https://github.com/geoserver/geoserver/blob/master/src/community/backup-restore/core/src/main/java/org/geoserver/backuprestore/writer/CatalogAdditionalResourcesWriter.java
[4] https://github.com/geoserver/geoserver/blob/master/src/community/backup-restore/core/src/main/java/org/geoserver/backuprestore/tasklet/GenericTaskletHandler.java
[5] https://github.com/geoserver/geoserver/blob/master/src/community/backup-restore/core/src/test/java/org/geoserver/backuprestore/ExtraFileHandler.java
···
On 20-05-2017 00:20, Dave Blasby wrote:
Hi,
I tried running the backup-and-restore (2.11) community module on a geoserver with GeoGig repositories.
GeoGig uses resources to store the configuration of the geogig repositories. On the file system they are in “DATA-DIR/geogig/config/repos/” (a bunch of .xml files).
However, when I run the backup-and-restore, it doesn’t back these up (I couldnt find them in the .zip file and I get errors when restoring the catalog because they aren’t there).
Am I missing something?
Do I need to add an extension as mentioned here;
http://docs.geoserver.org/latest/en/user/community/backuprestore/extensions.html
Thanks,
Dave
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! [http://sdm.link/slashdot](http://sdm.link/slashdot)
_______________________________________________
Geoserver-devel mailing list
[Geoserver-devel@lists.sourceforge.net](mailto:Geoserver-devel@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-devel](https://lists.sourceforge.net/lists/listinfo/geoserver-devel)
--
==
GeoServer Professional Services from the experts!
Visit [http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928
[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_it](http://twitter.com/geosolutions_it)
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono
da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e
-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo
anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of
the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree
June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which
arise as a result of e-mail transmission, viruses, etc.