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 directoryCleanup:
- 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)
- remove the file
Copy the new
geonetwork.warfile inwebappsRun 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 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
