[GeoNode-devel] Backup and restore of Geonode 2.4

Dave Kennewell davekennewell at gmail.com
Wed May 16 00:35:32 PDT 2018


 Hi Jonathan,

This script is originally for 2.0 but it covered everything I needed to
backup 2.4. I used a tweaked version many (many) times lol.

https://gist.github.com/jailbirt/4e6d9cc3e58bb2a95429

Hope that helps a bit.

Dave


On 16 May 2018 at 11:15, jondoig [via OSGeo.org] <
ml+s1560n5364518h73 at n6.nabble.com> wrote:

> Hi
>
>
>
> Transferring our Geonode 2.4 to AWS. How to backup the content and restore
> to the new instance?
>
>
>
> The doco and past threads point to builds using Geoserver 2.9 or later,
> but Geonode 2.4 has Geoserver 2.7.4.
>
>
>
> I’ve tried pg_dump:
>
> /usr/bin/pg_dump geonode --port=5432 --username=postgres --format=t >
> geonode_ dump.tar
>
> /usr/bin/pg_dump geonode_data --port=5432 --username=postgres --format=t >
> geonode_data_dump.tar
>
>
>
> Also tarred and transferred the uploaded subfolder
>
>
>
> That restores OK up to a point:
>
>    - geonode lists layers, maps, documents, people, groups
>    - psql shows the tables are created and have records, both in geonode
>    and geonode_data
>
>
>
> But Geoserver reports 0 layers, so maps in Geonode show as pink broken
> images (“Could not find layer”).
>
>
>
> Tried ‘python manage.py updatelayers’, but it updated 0 layers.
>
>
>
> There’s no “find_geoserver_broken_layers” command in manage.py in Geonode
> 2.4.
>
>
>
> Do I also need to transfer the content of the GEOSERVER_DATA folder?
> Trying that next…
>
>
>
> Jonathan
>
> _______________________________________________
> geonode-devel mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5364518&i=0>
> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://osgeo-org.1560.x6.nabble.com/Backup-and-restore-
> of-Geonode-2-4-tp5364518.html
> To unsubscribe from GeoNode, click here
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5185390&code=ZGF2ZWtlbm5ld2VsbEBnbWFpbC5jb218NTE4NTM5MHwtOTI1NjEyMTk0>
> .
> NAML
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180516/630c1144/attachment.html>


More information about the geonode-devel mailing list