How to disable indexing for Gmail message contents.


Starting with version 4.11, new backups of Gmail messages now index the content of messages (in addition to the subject, senders, recipients and snippets). This enhances search capabilities and allows directly searching message contents. However, it will also increase the Gmail backup size by 5%~10%.

If you need to disable this feature due to storage constraints or security reasons, please follow these steps:

  1. Open the config file config.toml on the backup server using a text editor.

    Note:
    Starting with version 4.7, the configuration file is located at <installation directory>/etc/config.toml for fresh installations of CubeBackup. For installations upgraded through the console, or versions prior to 4.7, the configuration file is still located at <installation directory>/bin/config.toml.
         On Windows, the installation directory is located at C:\Program Files\CubeBackup4 by default.
         On Linux, the installation directory is located at /opt/cubebackup by default.

  2. In the [Backup] section, find the DisableMailBodyIndex field and set the value to true. If your config.toml file doesn't contain a DisableMailBodyIndex line, you will need to add the following in the [Backup] section:

    DisableMailBodyIndex = true
  3. Save the changes and restart the CubeBackup service to apply the new settings.

    Please run this command.

    sudo /opt/cubebackup/bin/cbsrv restart

    Open a Command Prompt as Administrator, and run this command.

    "C:\Program Files\CubeBackup4\bin\cbsrv.exe" restart

    Open the Windows PowerShell as Administrator, and run this command.

    & "C:\Program Files\CubeBackup4\bin\cbsrv.exe" restart

    Please run this command to restart the container.

    sudo docker restart <container-name>