KB: Prevent Enterprise Server Backup Failures Caused by Low Disk Space

Altium On-Prem Enterprise Server Altium On-Prem Enterprise Server
Altium On-Prem Enterprise Server (AES) backups can fail when insufficient disk space is available during the backup process. This commonly occurs on data storage servers where many users commit data daily, causing rapid disk growth over time. In addition to the final backup ZIP file size, the backup operation requires extra temporary disk space for staging and processing, which can cause unexpected failures even when some free space exists. Insufficient disk space can lead not only to backup failures but also to server instability, data loss, and productivity issues. This article explains why disk space‑related backup issues occur and outlines preventative checks and best practices to reduce the risk of backup failures in AES environments.

Solution Details

Backup failures caused by low disk capacity

During Altium On-Prem Enterprise Server (AES) backup operations, the process may fail if the server runs out of available disk space. This is common on servers that store large amounts of design data and receive frequent daily commits from multiple users. Backup failures triggered by low disk space can result in incomplete backups, service disruptions, and potential data loss.

Temporary space consumption during backup operations

The AES backup process consumes additional temporary disk space beyond the size of the final backup ZIP archive. This includes temporary storage used during data staging and processing. As a result, having free disk space equal to the previous backup size may still be insufficient, especially in environments with rapid data growth.

How to prevent disk space related failures

  1. Check the AES Health Monitor regularly and review the System Resources section. Ensure all indicators are green. If warning or error statuses appear, investigate disk capacity.

Altium On‑Prem Enterprise Server Health Monitor dashboard showing system status: 2 errors and 112 warnings. Services, database, file storage, environment, and performance report OK; admin password shows a warning.

  1. Before running a manual AES backup, confirm available disk space and ensure it is at least double or triple the size of the most recent backup archive to account for temporary storage usage.
  2. If there is not enough disk space on the C: drive for creating the backup, change the %TMP% environment variable to another drive or a network drive before running the avbackup command.

Change the TMP environment variable in PowerShell:

$env:TMP='some/path'
  1. For automatic server backups, use a script to validate disk usage and clean up old backup files before running the backup command.

The following is an example script to check disk space before running a backup. This script is provided as an example only and may not work in all environments. Paths and commands must be adjusted accordingly. Use and customize it at your own discretion.

@echo off setlocal 
REM === Configuration === set "ARCHIVE_DIR=D:\Archive" set "BACKUP_TOOL_DIR=C:\Program Files (x86)\Altium\Altium365\Tools\BackupTool" set "MIN_FILE_COUNT=10" set "DAYS_TO_KEEP=30" 
REM === Count total files in archive directory === for /f %%A in ('dir "%ARCHIVE_DIR%" /b /a:-d ^| find /c /v ""') do set FILE_COUNT=%%A 
echo File count in Archive: %FILE_COUNT% 
REM === If more than MIN_FILE_COUNT, delete files older than DAYS_TO_KEEP === if %FILE_COUNT% GTR %MIN_FILE_COUNT% ( echo Cleaning up files older than %DAYS_TO_KEEP% days... forfiles /p "%ARCHIVE_DIR%" /s /m *.* /d -%DAYS_TO_KEEP% /c "cmd /c del @path" ) else ( echo Not enough files to clean. Skipping cleanup. ) 
REM === Run backup === cd /d "%BACKUP_TOOL_DIR%" avbackup backup -z -t -h -i -m -d -c --split --skip-shadow-copy 
endlocal

Additional Notes

  • In environments with frequent commits, large repositories, or long retention periods, allocate disk capacity significantly above the documented minimum and recommended system requirements.
  • Insufficient disk space can impact other AES services in addition to backups, including search indexing and general server stability. Proactive disk monitoring and cleanup can help prevent multiple related issues.
  • Before performing bulk project or library migrations, verify disk space and Health Monitor status to avoid server slowdown or downtime.
  • Ensure the standalone Health Monitor tool (avhealth.exe) is closed before running the AES backup tool, as both utilities require exclusive access to the server database.

References

如您发现任何问题,请选中相关文本/图片,并按 Ctrl + Enter 键向我们提交反馈。