Migrating a Maple T.A. Installation to a new server
Basically there are 3 different places where Maple T.A. information is stored:
- In Tomcat's webapps folder (e.g. C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\mapleta )
- In the Maple T.A. folder (e.g. C:\Program Files\Maple T.A.)
- In the PostgreSQL database
The information you need to back up for the Maple T.A. folder above are the \records and \html\tmp folders. This contains details about all the classes, question banks and web content. You simply need to make a copy of these folders (e.g. C:\Program Files\Maple T.A.\records and C:\Program Files\Maple T.A.\html\tmp ).
To back up the Postgres database:
- Open up pgAdmin III.
- In the Object Browser pane, expand the PostgreSQL Database Server node followed by the Databases node (you may need the PostgreSQL password).
- Right-click on the mapleta node and select Backup. Choose the default selections and choose a location and file name for the backup.
After Maple T.A. has been installed on the new server (and after any patches and hotfixes have been applied) you can:
- Move the backed up \records and \html\tmp folders to the new installation.
- Copy the backed up database to the new Postgres installation as follows:
- Open the pgAdmin III tool on the new server.
- In the Object Browser pane, expand the PostgreSQL Database Server node followed by the Databases node.
- Right-click on your mapleta database node and select Delete / Drop to delete the database.
- Right-click on the Databases node and select New Database. Enter the same Name and Owner as the database you just deleted. Set the Encoding to UTF-8.
- Right-click on the newly created mapleta database node in the pgAdmin tree view and select Restore.
- Browse to the backed up database and click OK.
Finally, you will have to check that the path names in the database to ensure they are correct. To edit the pathnames in your database:
- Open the pgAdmin III tool.
- Expand Databases > mapleta > Schemas > public > Tables.
- View the system_properties table.
- In the key field, find MaplePath. In the corresponding value field, make sure this points to the copy of Maple included with Maple T.A. (e.g. C:/Program Files/Maple T.A./bin.win/cmaple.exe ).
- In the key field, find gatewayHomePath. In the corresponding value field, make sure this corresponds to your Maple T.A. installation folder (e.g. C:/Program Files/Maple T.A. ).
- Save the changes and exit PGAdmin III.
Did you find this article helpful?