53 | | 2. During setup, the installer will back up the existing repositories if necessary, then run the upgrade utilities (which will do nothing if the repositories have already been upgraded). In rare/complex situation, the installer may encounter some upgrade problem (e.g. different combinations of versions of repositories, including no longer supported ones, etc.). When this happens, the installer will continue the installation without the upgrade, and at the end, it will display a brief description about the problem and a reference to the detailed upgrade documentation. Note that, the installer will need to install the upgrade utilities so that they can be run independently at a later time. This is useful when: |
| 53 | B. During setup, the installer will back up the existing repositories if necessary, then run the upgrade utilities (which will do nothing if the repositories have already been upgraded). In rare/complex situation, the installer may encounter some upgrade problem (e.g. different combinations of versions of repositories, including no longer supported ones, etc.). When this happens, the installer will continue the installation without the upgrade, and at the end, it will display a brief description about the problem and a reference to the detailed upgrade documentation. Note that, the installer will need to install the upgrade utilities so that they can be run independently at a later time. This is useful when: |
| 57 | |
| 58 | Here are the manual steps on how to upgrade the repositories: |
| 59 | |
| 60 | 1. Shut down the existing !MapGuide Server (e.g. "1.2.x") if it is running. |
| 61 | |
| 62 | 2. Change to the !RepositoryAdmin directory (e.g. "C:\Program Files\!MapGuideOpenSource\Server\!RepositoryAdmin\" or "/usr/local/mapguide/server/RepositoryAdmin/"). |
| 63 | |
| 64 | 3. Run !BackUpOnlineRepositories.bat (or !BackUpOnlineRepositories.sh). |
| 65 | |
| 66 | 4. Run !RestoreRepositories.bat (or !RestoreRepositories.sh). |
| 67 | |
| 68 | 5. Un-install the existing !MapGuide Server. Note that the existing repositories will not get removed. |
| 69 | |
| 70 | 6. Install the new !MapGuide Server (e.g. "2.0.0"). Note that the Server will fail to start if it tries to open old repositories. |
| 71 | |
| 72 | 7. Shut down the newly installed Server if it started successfully (because it created new repositories on a different location). |
| 73 | |
| 74 | 8. If the new !MapGuide Server is installed on a different location than the old one, delete the Repositories directory then copy/move the old one to the new location (e.g. "C:\Program Files\!MapGuideOpenSource\Server\Repositories\" or "/usr/local/mapguide/server/Repositories/"). |
| 75 | |
| 76 | 9. Change to the !RepositoryAdmin directory (e.g. "C:\Program Files\!MapGuideOpenSource\Server\!RepositoryAdmin\" or "/usr/local/mapguide/server/RepositoryAdmin/"). |
| 77 | |
| 78 | 10. Run !UpgradeRepositories.bat (or !UpgradeRepositories.sh). |
| 79 | |
| 80 | 11. Run !SetupRepositoryIndices.bat (or !SetupRepositoryIndices.sh). |
| 81 | |
| 82 | 12. Restart the Server. It should successfully open the upgraded repositories. |
| 83 | |
| 84 | Note that the upgrade could take longer time if you have large repositories. |