On the target server:
Install the Teaming 2.1 software on the target server, as described in Section II, Basic Installation, paying special attention to these important details:
Set up the same Linux user to run the Teaming software that has been used to run the Teaming software in the past.
Select the same encryption algorithm for the Teaming database.
IMPORTANT:If the database encryption algorithms do not match between the source and target Teaming systems, you cannot log in to the new Teaming 2.1 site.
Start Teaming on the target server.
Verify that the new Teaming site is working as expected.
Stop Teaming on the target server.
On the source server:
Stop Teaming.
Back up your existing database:
mysqldump -uusername -ppassword sitescape > sitescape.sql
This creates a file named sitescape.sql in the directory where you executed the mysqldump command.
Make sure that you have a recent backup of your entire Teaming system.
On the source server:
Mount the target server to the source server so that data can be copied from one server to the other.
In a terminal window on the source server, become the Linux user that runs the Teaming software.
(Conditional) If you are migrating data from Teaming 1.0:
Copy your existing Teaming file repository to the target server:
IMPORTANT:Do not copy the liferay directory.
Copy the database backup of your existing Teaming database (sitescape.sql file) that you created in Step 2 in Section 23.1.2, Preparing the Source Linux Server to a convenient temporary location on the target server.
Copy your existing Teaming Lucene index to the target server:
In Teaming 2.1, the lucene directory now contains kablink and liferay.com directories.
Delete the empty kablink directory.
Rename the liferay.com directory where your existing Teaming database resides to kablink, which is the Teaming 2.1 zone name.
Copy your existing software extensions to the target server:
In Teaming 2.1, the extensions directory now contains the kablink and liferay.com directories.
Delete the empty kablink directory.
Rename the liferay.com directory where your existing software extensions reside to kablink, which is the Teaming 2.1 zone name.
(Conditional) If you are migrating data from Teaming 2.0:
Copy your existing Teaming file repository from /var/opt/novell/teaming on the source server to the same location on the target server.
Copy the database backup of your existing Teaming database (sitescape.sql file) that you created in Step 2 in Section 23.1.2, Preparing the Source Linux Server to a convenient temporary location on the target server.
Copy your existing Teaming database index from /var/opt/novell/teaming/lucene on the source server to the same location on the target server.
Copy your existing software extensions from /var/opt/novell/teaming/extensions on the source server to the same location on the target server.
On the target server:
Remove the empty Teaming database that was created when you installed the Teaming 2.1 software:
mysql>drop sitescape;
Change to the directory where you copied the sitescape.sql file in Step 3.b or Step 4.b in Section 23.1.3, Transferring Data from the Source Server to the Target Server.
Manually re-create the Teaming database with the data that you copied from the source server:
mysql -uusername -ppassword sitescape < sitescape.sql
On the target server:
(Conditional) If your are updating from Teaming 1.0 to 2.1, unzip the update-1.0.0-2.0.n.zip file, change to the resulting update-1.0.0-2.0.n directory, then run the update script to update the Teaming database from Teaming 1.0 to 2.0:
mysql -uusername -ppassword < update-mysql.sql
For more complete database update instructions, refer to Section 20.4.1, Manual Teaming Database Update.
To update from Teaming 2.0 to 2.1, unzip the update-2.0.0-2.1.n.zip file, change to the resulting update-2.0.0-2.1.n directory, then run the update script to update the Teaming database from Teaming 2.0 to 2.1:
mysql -uusername -ppassword < update-mysql.sql
For more complete database update instructions, refer to Section 19.3.1, Manual Teaming Database Update.
In Teaming 1.0, the default zone name was liferay.com. Starting in Teaming 2.0, the default zone name is kablink. If your Teaming site originated as Teaming 2.0, rather than 1.0, skip to Section 23.1.7, Finalizing Your New Teaming 2.1 Site.
If your Teaming site originated as Teaming 1.0, you must reset the default zone name.
On the target server:
Change to the following directory:
/opt/novell/teaming/apache-tomcat-version/webapps/
ssf/WEB-INF/classes/config
View the following files to ensure that the current zone name is set to kablink.
zone.cfg.xml zone-ext.cfg.xml
Use the following commands to update the Teaming database with the new default zone name:
mysql -uusername -ppassword mysql>use sitescape; mysql>update SS_ZoneInfo set zoneName='kablink' where zoneName='liferay.com'; mysql>update SS_Forums set name='kablink' where name='liferay.com';
Find and rename any liferay.com subdirectories to kablink.
You might or might not find liferay.com subdirectories in the following locations, so you should check them all:
/var/opt/novell/teaming/filerepository /var/opt/novell/teaming/lucene /var/opt/novell/teaming/extensions /var/opt/novell/teaming/archivestore /var/opt/novell/teaming/cachefilestore
Start Teaming 2.1, as described in Section 4.1.5, Starting Teaming on Linux.
Reindex the Teaming site, as described in Rebuilding the Lucene Index
in Site Maintenance
in the Kablink Teaming 2.1 Administration Guide.
Your Teaming site should now function just as it did on the original source server.