Challenge
This article documents how change the temporary staging location where SQL transaction log backups are stored during a Veeam Agent for Windows backup operation when Transaction Log Backup is enabled.
For more information on the Transaction Log Backup process for Veeam Agent for Windows please click here.
Cause
When SQL Transaction Log Backup is enabled, Veeam Agent for Windows copies transaction log files from the log archive destination (set by the Microsoft SQL Server administrator) to a temporary folder on the server. By default the path is: C:\ProgramData\Veeam\Endpoint\SqlLogBackup.
Solution
To change the location where the SQL Transaction Logs are temporarily stored, create the following registry entry on the server.
Note: This registry change is to be made on the machine where Veeam Agent for Windows is installed, and is running the backup with SQL Transaction Log backup enabled.
Key: HKLM\SOFTWARE\Veeam\Veeam Endpoint Backup
Type: REG_SZ (String Value)
Name: SqlTempLogPath
Value: Path to desired location (without trailing backslash)
Note: if the backup job is managed by Veeam Backup & Replication, then the path for the registry should be:
Key: HKLM\SOFTWARE\Veeam\Veeam Backup and Replication
The key should be created manually in the Agent machine registry if it does not exist.
Example
More Information
- For managed by VBR Failover Cluster type jogs the path should be HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Backup and Replication. The key should be created manually in the Agent machine registry if it does not exist.
- Starting with Veeam Backup and Replication 9.5 Update 4 (Veeam agent for Windows 3.0.1.1039) if the entered path is not valid, Veeam Agent will select an NTFS/ReFS volume having the most free space.