[GeoNode-devel] Issue #2401: GNIP: GeoNode Backup and Restore

Alessio Fabiani alessio.fabiani at geo-solutions.it
Fri Sep 9 03:43:25 PDT 2016


Dear all,
here [*1*] the Pull Request implementing GeoNode/GeoServer Backup and
Restore and Migration.

I will add detailed documentation on GeoNode docs as soon as the PR has
been accepted and merged.

This is briefly how it works.
Basically the PR implements two new GeoNode Management Commands, 'backup'
and 'restore'.
Both commands allows you to:

1. Fully backup GeoNode data and fixtures on a zip archive
2. Fully backup GeoServer configuration (physical datasets - tables,
shapefiles, geotiffs) must be copied manually on the GeoServer data dir
3. Fully restore GeoNode and GeoServer fixtures and catalog from the zip
archive
4. Migrate fixtures from old GeoNode models to the new one

The usage of those commands is quite easy and straight.
The first step is to be sure that everything is correctly configured on the
"settings.py" and "local_settings.py"; next just review the
"geonode/base/management/commands/settings.ini" and ensure the few
requested variables are all correctly configured.

In order to perform a *backup* just run the command:

*python manage.py backup --backup-dir=/tmp/*

[image: Inline image 1]


In order to perform a *restore* just run the command:

*sudo python manage.py restore --backup-file=/tmp/2016-09-09_053358.zip*

[image: Inline image 2]
*...*
[image: Inline image 3]


It is worth notice that this functionality *requires* the latest GeoServer
Extension (*2.9.x*) for GeoNode in order to correctly work
(*http://build.geonode.org/geoserver/latest/
<http://build.geonode.org/geoserver/latest/>*).

I would also like to advise that in the past few days I pushed several
fixes to the GeoServer Ext for GeoNode, in particular:

1. Added the GeoServer Backup and Restore plugin
2. Fixed the printing module dependency preventing GeoServer to generate
thumbnails
3. Added a correct rule on the REST security file in order to access the
printing endpoint
4. Minor fixes mainly on dependencies

Best Regards,
Alessio Fabiani.

[*1*] - https://github.com/GeoNode/geonode/pull/2651

==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==

Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686

http://www.geo-solutions.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.

---------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160909/b4e6ae97/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 50422 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160909/b4e6ae97/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 13875 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160909/b4e6ae97/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 68002 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160909/b4e6ae97/attachment-0005.png>


More information about the geonode-devel mailing list