How to adjust PartSize for S3 storage to resolve the "TotalPartsExceeded" error in CubeBackup


Error message

TotalPartsExceeded: exceeded total allowed configured MaxUploadParts (10000). Adjust PartSize to fit in this limit s3.UploadWithContext()

Instructions

To resolve this issue, follow the steps below to adjust the part size for the S3 upload process:

  1. Open the configuration file <installation directory>\etc\config.toml on the backup server using a text editor.

    On Windows, the default installation directory is located at C:\Program Files\CubeBackup365.
    On Linux, the default installation directory is located at /opt/cubebackup365.

  2. Add the following lines to the end of the file, and save the changes.

    [Storage]
    PartSize = 32
  3. 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>

  4. Return to the CubeBackup web console and manually initiate another backup.

  5. If the issue persists, change the PartSize value to 64, save the configuration file, and repeat steps 3 and 4.

Note: Monitor RAM usage during the backup process, as increasing the PartSize value may lead to higher memory consumption on your server. If necessary, upgrade the RAM to ensure that your CubeBackup server remains stable.