How to move your hosted data to your local server

Complete and verify your local installation

Complete your local installation. Verify that you are able to login. This will mean that the application is able to connect to the database.

Download your database and documents

You will be provided with a FTP link to download the database and the documents. You will see two files:

  • database.backup.zip - the backup of the database
  • data.zip - the backup of the documents you have uploaded

Unzip the two files

Download the two files and unzip them. You should now have 2 directories :

  1. A database.backup directory
  2. A directory called data. Verify that the data directory has two sub-directories indices and documents.

Restore the database backup and data directory

  1. Stop Celoxis - run shutdown.bat (or .sh on unix) from psa_x.y.z/bin
  2. Drop the existing database.
  3. Recreate the database using the same database user that Celoxis will use to connect to the database.
  4. Restore the database.backup (or database.bak in case of SQL Server versions) file (On how to restore, see below.)
  5. Delete your existing data directory. To know your data directory, go to Administration from the user icon menu and click on Site Settings > Edit Site Settings. Check the "Data Directory Path" attribute under the "Basic" tab.
  6. Copy the data directory to that location.
  7. Run the following sql: update db_config set value='C:\data' where name='local_storage_root';

    Substitute the C:\data with the path where your data directory resides.

  8. Run the following sql: update db_company set server_name='yourservername:8888'; 
  9. The 'yourservername'  should be the same as what you would like your users to access Celoxis. For example if you would like users to access Celoxis as http://projects.mycompany.com:8888, then run: update db_company set server_name='projects.mycompany.com:8888';
  10. Start Celoxis - run startup.bat (or .sh on unix) in psa_x.y.z/bin
  11. Goto the "Edit Settings" (From toolbar Setup->Site) and re-enter your Settings

Restoring database in Postgresql

pg_restore -Fc -d <dbname> -O -U <username> database.backup

Restoring database in Microsoft SQL Server

Using Enterprise Manager, right click on the database node and choose "Restore" from "All Tasks"