How to configure the automatic logout time for the CubeBackup for Google Workspace web console.


CubeBackup login sessions are configured to automatically log out after 24 hours of inactivity. To customize these settings for enhanced security, please follow the steps below:

  1. Stop the CubeBackup service using the following command.

    Please run this command.

    sudo /opt/cubebackup/bin/cbsrv stop

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

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

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

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

    Please run this command to stop the container.

    sudo docker stop <container-name>

  2. Open the configuration 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.

  3. In the [Web] section, add the IdleLogout field and set the value in seconds.

    [Web]
    ...
    IdleLogout = 3600
    ...
  4. Go to the CubeBackup installation directory and remove the following files:

    • <installation_directory>/db/session.sqlite.
    • <installation_directory>/db/session.sqlite-wal if there is one.
    • <installation_directory>/db/session.sqlite-shm if there is one.
  5. Save the changes and start the CubeBackup service to apply the new settings.

    Please run this command.

    sudo /opt/cubebackup/bin/cbsrv start

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

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

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

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

    Please run this command to start the container.

    sudo docker start <container-name>