Stop Teamwork Server.
Back up all data in case of unsuccessful data transfer.
Deactivate the license of the old installation.