Updating a major version¶
This section describes how to update from a previous major version of OpenGeo Suite.
Note
- For new installations, please see the section on Installing.
- For upgrading to OpenGeo Suite Enterprise, please see the section on Upgrading to OpenGeo Suite Enterprise.
- For updating from a previous minor version of OpenGeo Suite (4.x), please see the Updating a minor version section.
Warning
This update is not-backward compatible. Irreversible changes are made to the data so that they can’t be used with versions 3.x and below of OpenGeo Suite.
System Requirements¶
OpenGeo Suite has the following system requirements:
- Operating System: 10.9 or newer
- Memory: 1GB minimum (2GB recommended)
- Disk space: 1GB minimum (plus extra space for any loaded data)
- Browser: Any modern web browser is supported
- Permissions: Administrative rights
Back up PostGIS databases¶
The first step of the update process is to back up your existing PostGIS data.
Ensure the old (3.x) version of OpenGeo Suite is running.
Open up the Terminal application and make sure that the PostgreSQL
bin
directory is on your path. By default, this is located at/opt/opengeo/pgsql/9.1/bin
. Use the commandpsql --version
to verify:export PATH=$PATH:/opt/opengeo/pgsql/9.1/bin psql --version
To backup, a specialized PostGIS update utility is used. Download this utility, and extract the archive to a temporary directory. To avoid permissions issues, it is best to put this directory on your desktop or in your home directory. By default, the backup files created from using this script will be saved into this directory.
mkdir -p opengeo_backup/pg_backup; cd opengeo_backup/pg_backup curl -O http://repo.opengeo.org/suite/releases/pgupgrade/postgis_upgrade-4.0.zip unzip postgis_upgrade-4.0.zip
Run the backup command:
perl postgis_upgrade.pl backup --port 5432
Note
For more information about supported options run
perl postgis_upgrade.pl --help
.The script will run and create a number of files:
- Compressed dump files for every database backed up (
<database>.dmp
) - SQL output of server roles
- Compressed dump files for every database backed up (
The PostGIS data backup process is complete. You may now shut down OpenGeo Suite 3.x.
Install new version¶
You may now install the new version of OpenGeo Suite. See Installing for details. In order to run the PostGIS restore script you must install the OpenGeo Client Tools package.
Restore PostGIS databases¶
Ensure
PostGIS.app
is running.Ensure the PostGIS/PostgreSQL command line tools are on the PATH. If you did not install the OpenGeo Client Tools` package in the previous section do so now. From a command prompt, type the command:
export PATH=/usr/local/opengeo/bin:$PATH
Restore your PostGIS data by running the upgrade utility again with the “restore” argument:
cd opengeo_backup/pg_backup perl postgis_upgrade.pl restore
Your databases and roles will be restored. You can verify that the databases were created and data restored by running
psql -l
on the command line.
Restore GeoServer data directory¶
Quit
GeoServer.app
.Restore the GeoServer data directory:
cd ~/Library/Application\ Support/GeoServer mv data_dir data_dir.old cp -R ~/Library/Containers/com.boundlessgeo.geoserver/Data/Library/Application\ Support/GeoServer .
Restart
GeoServer.app
.
Uninstall old version¶
You may now uninstall the previous version of OpenGeo Suite. The uninstaller is located at /Applications/OpenGeo/OpenGeo Suite Uninstaller.app
.
After update¶
The update is now complete. Please see the section on After installation: Working with OpenGeo Suite for Mac OS X to continue.