How to enable or disable data export in CubeBackup for Microsoft 365.


By default, CubeBackup allows the administrator to export backups for Teams and SharePoint sites to local machines; however, for security and privacy reasons, data export for users is disabled. In order to enable / disable data export, please follow the instructions below to modify the CubeBackup configuration file.

Data export for Microsoft 365 users

To enable data export for users:

  1. Log (or SSH) into your backup server.
  2. Open the configuration file <installation directory>/etc/config.toml using a text editor.
    Note:
    By default, the installation directory is C:\Program Files\CubeBackup365 on Windows, and /opt/cubebackup365/ on Linux.
  3. Find the [Export] section and change the value of  UserExportable to true. This will enable the data export for users in CubeBackup.
    [Export]
    UserExportable = true 
    
  4. Restart the CubeBackup service using the following command.

    Please run this command.

    sudo /opt/cubebackup365/bin/cbsrv restart

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

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

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

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

    Please run this command to restart the container.

    sudo docker restart <container-name>
  5. Refresh the CubeBackup web console and verify that the change now takes effect.

Data export for Teams

To disable data export for teams:

  1. Log (or SSH) into your backup server.
  2. Open the configuration file <installation directory>/etc/config.toml using a text editor.
    Note:
    By default, the installation directory is C:\Program Files\CubeBackup365 on Windows, and /opt/cubebackup365/ on Linux.
  3. Find the [Export] section and change the value of  TeamExportable to false . This will disable the data export for Teams in CubeBackup.
    If your config.toml file doesn't contain an TeamExport line, you will need to add the following in the [Export] section:

    [Export]
    TeamExportable = false
    
  4. Restart the CubeBackup service using the following command.

    Please run this command.

    sudo /opt/cubebackup365/bin/cbsrv restart

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

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

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

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

    Please run this command to restart the container.

    sudo docker restart <container-name>

  5. Refresh the CubeBackup web console and verify that the change now takes effect.

Data export for SharePoint sites

To disable data export for sites:

  1. Log (or SSH) into your backup server.
  2. Open the configuration file <installation directory>/etc/config.toml using a text editor.
    Note:
    By default, the installation directory is C:\Program Files\CubeBackup365 on Windows, and /opt/cubebackup365/ on Linux.
  3. Find the [Export] section and change the value of  SiteExportable to false . This will disable the data export for SharePoint sites in CubeBackup.
    [Export]
    SiteExportable = false
    
  4. Restart the CubeBackup service using the following command.

    Please run this command.

    sudo /opt/cubebackup365/bin/cbsrv restart

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

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

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

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

    Please run this command to restart the container.

    sudo docker restart <container-name>

  5. Refresh the CubeBackup web console and verify that the change now takes effect.

Hide data export option

For additional protection, system administrators can hide the Export button in the CubeBackup web console. Please follow the instructions below to configure this setting:

  1. Log (or SSH) into your backup server.
  2. Open the configuration file <installation directory>/etc/config.toml using a text editor.
    Note:
    By default, the installation directory is C:\Program Files\CubeBackup365 on Windows, and /opt/cubebackup365/ on Linux.
  3. Locate the [Export] section and insert the following line  HideButton = true .
    [Export]
    HideButton = true
    UserExportable = false
    SiteExportable = false
    TeamExportable = false
    
  4. Restart the CubeBackup service using the following command.

    Please run this command.

    sudo /opt/cubebackup365/bin/cbsrv restart

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

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

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

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

    Please run this command to restart the container.

    sudo docker restart <container-name>
  5. Refresh the CubeBackup web console and verify that the change now takes effect.