When setting up Geonode using docker-compose (https://github.com/GeoNode/geonode/blob/master/docker-compose.yml), and performing Backup/Restore procedures - everything is restored but the postgis table containing the layer data (the layer is visible in Geonode and it is present in Geoserver, but data is not loaded in both places).
When setting up Geonode using docker-compose (https://github.com/GeoNode/geonode/blob/master/docker-compose.yml), and performing Backup/Restore procedures - everything is restored but the
postgis
table containing the layer data (the layer is visible in Geonode and it is present in Geoserver, but data is not loaded in both places).The part that is responsible for dumping the data fails silently at https://github.com/GeoNode/geonode/blob/d888a6c6b7cfe386e1153d8f3bbee3b5b974d19b/geonode/br/management/commands/utils/utils.py#L275. Most likely the Geonode image is missing
postgres-client
, since bothpg_dump
andpg_restore
commands are missing in the container.Test of Geonode's B/R was performed as follows:
mkdir /geoserver_data/data/backup
python manage.py backup -c /usr/src/geonode/geonode/br/management/commands/settings_docker_sample.ini --backup-dir /geoserver_data/data/backup
python manage.py restore -c /usr/src/geonode/geonode/br/management/commands/settings_docker_sample.ini --backup-file /geoserver_data/data/backup/<generated-archive>