GITEX Global 2024 on October 14 — 18 in Dubai
Go back

Migrating TrueConf Server from Linux to Linux

November 1, 2023
Anthony Baadzhy

Anthony Baadzhy

Migrating TrueConf Server from Linux to Linux 1

Sometimes, it may be necessary to migrate TrueConf Server to a different virtual machine or computer. This also includes the cases when a Linux-based OS is used. You will be able to save the following types of data:

  1. Database export:
    • Server settings
    • User and group settings
    • Conferences and templates
    • Reports.
  2. If you are using HTTPS, you will be able to export the certificate files.
  3. It is also possible to export such additional data as:
    • Conference recordings
    • Files sent via chats
    • Server logs
    • User avatars.

This guide can also be used for migrating TrueConf Server from one Linux-based system to another, e.g., from Debian to Red Hat Enterprise.

Important! Please take into account that chat history can be saved only if the public server name remains unchanged because the sender of messages is determined by the full TrueConf ID.
Use the sudo program to run the commands in administrator mode, Please make sure that the current user is added to the sudo group (check the corresponding instructions for your OS on the Internet). You need to take into account that the sudo may not be installed on your OS by default. To check, if this command is available, run sudo -V.

Step 1. TrueConf Server update

To migrate successfully, you need to make sure that the new server installed on Linux and the current server are of the same version. Our Linux repository always includes only the latest version of the distro. We do not provide earlier versions of the server due to security reasons. So, we suggest updating the current server to the latest version. Read this article to learn how it can be done.

Step 2. Server data export

To migrate TrueConf Server, you will need the registration key of your TrueConf Server instance and the backup copies listed below.

Please note that the migration of TrueConf Server from one machine to another will be impossible without these preliminary actions.

Registration key

The registration key cannot be found directly in the control panel due to security reasons. This key was sent to you in the email confirming the registration of your TrueConf Server instance. To find this email,  search by content and specify Server ID  which can be found in the Summary → License info section.

Main data

Database

The database stores all TrueConf Server settings, including chat history and reports.

How to check the current port number

To export the database, you will need to specify the port needed for connecting to the database. The 5444 port is used by default.

Since the port could be changed at some point in the past (e.g., the port could be set to 5433 after updating TrueConf Server from versions earlier that 5.2.9), run this command in the terminal to check the current port number:

Export

Then, complete the following steps to export the database:

  1. Open the terminal (if it was previously closed).
  2. Sign in as the postgres user:
  3. Go to the database directory:
  4. Run the following command and specify the port that will be used:

    Data export may take much time if a large number of chats is stored on the server.
  5. Sign out of the postgres user account by running this command:
  6. Move the file to the home directory or to a portable drive:

Later, we will refer to this folder as an example. To access it, run this command after copying all the data:

HTTPS settings

If you have configured HTTPS, the key and certificate files will be stored in the directory:

To save the backup copy of this folder, run this command:

Additional data

Conference and call recordings

When calls or conferences are automatically recorded on the server side, they are saved in the recordings folder. To find out the exact location, check the value of the Path field in the Recordings section of the control panel.

Migrating TrueConf Server from Linux to Linux 2

If you need to move them to a different server, just save the copy of the selected conference recordings. To do it, run this command:

Chat files

By default, the files sent by users in chats are saved in the files folder of the TrueConf Server working directory. To find out the exact location, check the value in the Path field of the File Storage section in the control panel:

Migrating TrueConf Server from Linux to Linux 3

If you want to move the files to a different server, save the backup copy of this directory. For example, to copy the chat files to the home directory of the current OS user, run this command:

Log files

Log files are needed when contacting the technical support. For example, they may be needed to analyze the potential issues that could occur when using the previous instance of TrueConf Server.

The log files are stored here /opt/trueconf/server/var/log. To move, create the copy of all directories and files with the cp command:

User avatars

The avatars of registered users are stored in the avatars folder of the TrueConf Server working directory. Copy this folder to the selected location.

By default, this folder can be found here /opt/trueconf/server/var/lib. But, you can check it in the Dashboard  → Settings section in the Work path sub-section.

Migrating TrueConf Server from Linux to Linux 4

Run this command to copy the directory:

Step 3. Install TrueConf Server

Check out this article to learn more about the installation of TrueConf Server from a file and repositories.

Do not register TrueConf Server after installation.

Step 4: Importing data

Database

How to check the current port number

To ensure successful data import, you will need to specify the port used for.connecting to the database. The 5444 port is used by default.

Since the port could be changed at some point in the past (e.g., the port could be set to 5433 after updating TrueConf Server from versions earlier that 5.2.9), run this command in the terminal to check the current port number:

Import

Disable TrueConf services and restart the database service to close all active connections:

Later, to import the database, you will need to complete the following steps:

  1. Open the terminal (if it was previously closed).
  2. Copy the exported file to the directory with the database:
  3. Sign in as the postgres user:
  4. Go to the database directory:
  5. Run the import command and specify the current port:

    The data import may take much time, if a large number of chats is stored on the server.
  6. Sign out of the postgres user account by running this command:

When all the data is imported, restart the following TrueConf Server services by running these commands consecutively:

HTTPS settings

  1. Copy the folder with the ssl key and certificate to this directory /opt/trueconf/server/etc/webmanager/ssl.
  2. Go to the TrueConf Server control panel.
  3. In the Web → HTTPS section, apply the same settings for the key and certificate.

Additional data

Copy other data saved in Step 1 to the corresponding directories:

  • Calls and conference recordings — to the recordings directory of the working directory (set by default)
  • Chat files — to the files directory in the working folder (set by default)
  • Logs — to the /opt/trueconf/server/var/log directory
  • User avatars — to the avatars directory in the working folder.

When all the settings are transferred, restart TrueConf Server:

Step 5. Testing data migration

Go to the control panel and check if all the data (avatars, reports, chat messages, users, conferences and other types of information) were correctly imported. If some errors occurred , for example, you mistyped a command and some of the data was not exported, uninstall the server completely and repeat steps 2 and 3.

If all the data was successfully imported, please contact the technical support to reset the hardware key (HW key) to which your license is bound. TrueConf technical support will reset the hardware key for free. You will need to submit a ticket and specify the ID of your server. When the technical support resets the hardware key, please register the server again.

Important! Do not change the public server name when registering the server; this name should remain unchanged for the correct display of chat messages. If you change this name, chat messages will not be displayed in client applications.

Happy video conferencing!


Still have questions? Please contact our support team directly via online chat.

Sign up for newsletter