Maintenance¶
Upgrading GeoNetwork¶
GeoNetwork updates will come in the form of new geonetwork.war files.
Usually upgrading to a new minor release is simply a matter of cleaning the Tomcat webapps/ directory.
Stop Apache Tomcat
Backup your DB
Backup webapps/geonetwork/, especially if you didn’t externalize the data directory
Cleanup:
- remove the file webapps/geonetwork.war
- remove the exploded webapps/geonetwork/ directory.
- In case you externalized the data dir, remove the Wro4j cache files (<DATA_DIR>/wro4j-cache.h2.db)
Copy the new geonetwork.war file in webapps
Run tomcat to expand the war file, or expand it by hand:
cd webapps mkdir geonetwork cd geonetwork jar xf ../geonetwork.war
Repeat the changes for non-externalizable files, such as:
- Enable INSPIRE view ( Enable the INSPIRE view (only needed in GN < 3.2.1))
- Enable INSPIRE CSS ( CSS files)
- Update log file location ( Log file location)
For non-externalized data dir, restore the data directory (webapps/geonetwork/WEB-INF/data/) from the backup done in one of the first steps.
Restart Apache Tomcat