Server Backup / Restore / Migrate |
Top Previous Next |
Code Collaborator can be backed up while it is running. Also, there is a system for migrating data from one database to another. Code Collaborator stores almost all data in the database initially set up for it. It also uses a local directory to store copies of uploaded files. These are the two systems that need to participate in the backup/restore process. Backing up the Database The mechanism for backing up the database depends on the database. All supported databases have some mechanism for live backup. See the documentation for your database for details. 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.
Backing up the File Cache The local directory you need to back up is located here (by default -- it 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 Code 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." Restoring a Code Collaborator Backup To restore a Code Collaborator installation, first restore the database as directed in your database documentation. Then, install the Code 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 Code Collaborator is running. If you've used the database migration technique to back up the database, refer to that section for instructions on restoring the database data. Code Collaborator has a generic mechanism for migrating data between databases -- even if the databases are completely different types. Applications of this migration technique include:
There are two halves to the migration process: Creating the migration data dump file, and "restoring" a data dump file into a Code Collaborator installation. To create the migration data dump file, log into the Code 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:" Fill out the fields to your preference: 1. Data Format: Normal - Selecting "Normal" will leave the data as is. Obfuscated - Selecting "Obfuscated" will change the data to conceal sensitive information. 2. Server Logs: Include server logs - Selecting this will include server logs in dump, but will also cause the download to take longer. Don't include server logs - Selecting this will not include server logs in the dump file. 3. File Contents: No file content - Selecting "No file content" will not include file content. Include all file content - Selecting this will include all file content, but this will also cause a longer download. 4. Which Data: Complete database dump - This must be selected for whole system dump. System configuration only - no review data - Selecting this will only save the system settings. Once you've 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. Loading this data into another Code Collaborator installation requires some effort. This process is intentionally complex to prevent accidental destruction of real data. Here are the steps to restoring a database migration data dump file:
|