|
Backup and Migration |
|
Collaborator can be backed up while it is running. Also, there is a system for migrating data from one database to another. Collaborator stores almost all data in the database initially set up for it. It also uses file content storage - a local directory that keeps copies of uploaded files. These are the two systems that need to participate in the backup/restore process. Back Up Database We recommend that you automate database backup process and perform it regularly. The mechanism for backing up the database depends on the database. See the documentation for your database and use backup software designed to integrate with that. Collaborator servers that use embedded database automatically create a daily database backup at 3 AM server time. This daily backups are stored in the file content storage (installation-directory/tomcat/collaborator-content-cache/db_backups). That is, on embedded databases you can just backup the content storage as described below. There is an alternate method for backing up the database which is to perform the first half of a database migration and save the migration data file. Back Up File Content Storage The default location of file content storage - a local directory that keeps copies of uploaded files - is listed below (however, the default location can be changed by the system administrator): installation-directory/tomcat/collaborator-content-cache Typically, a backup mechanism will either copy this directory elsewhere or will keep a zip or other compressed archive file updated with the contents. You can do this while Collaborator is running, although most backup mechanisms will run at off-peak hours. Files in this cache are stored in such a way that a file is written only once and thereafter is never changed. This means incremental backups of the directory are particularly easy -- only new files must be copied. Most file-copy utilities have a mode that means "only copy new files". Restore a Back Up To restore a Collaborator installation, first restore the database as directed in your database documentation. Then, install the Collaborator server software. Finally, restore the contents of the collaborator-content-cache directory in the new installation directory. You can do this last step while Collaborator is running. If you have used the database migration technique to back up the database, refer to steps 3-11 of Restoring the Data Dump File for instructions on migrating the database data. Migrating Data Between Databases Collaborator has a generic mechanism for migrating data between databases -- even if the databases are completely different types. Applications of this migration technique include:
NOTE: Each license key is linked to the node ID, and it gets carried over during server migration. Therefore, a new license key is not needed when migrating the server. There are two halves to the migration process: Creating the migration data dump file, and "restoring" the data dump file into a Collaborator installation. 1. Creating the Migration Dump File Note: If your Collaborator server runs on a 32-bit Java virtual machine, set any non-blank value to the com.smartbear.ccollab.datamodel.manager.chunk.for.32.jdk setting in the ccollab-server.vmoptions file and restart the server, before creating a dump file. To create the migration data dump file, log into the Collaborator web server, and click the System link at the bottom of the screen:
Near the top of the screen is a form and a button which will allow you to download a whole system dump:
It contains the following settings:
Once you have filled out the form, click the "Download Dump File" button to download the database dump file. This is a ZIP file containing all your database data in a platform- and database-independent XML format, plus additional files that describes your server environment. 2. Restoring the data dump file Loading this data into another Collaborator installation requires some effort. This process is intentionally complex to prevent accidental destruction of real data. Below are the steps to restoring a database migration data dump file:
c:\temp\ccollab-dump.zip
installation-directory/tomcat/conf/Catalina/localhost/ROOT.xml
<Parameter name="database-migration-data-path" value="c:\temp\ccollab-dump.zip" override="false" />
|
|
© 2003-2025 SmartBear Software. All rights reserved. |