Antivirus XML Configuration File
The antivirus software that you plan to use for scanning backups is described in the AntivirusInfos.xml file. Veeam Backup & Replication creates this configuration file on every machine with the mount server role and stores the file in the %ProgramFiles%\Common Files\Veeam\Backup and Replication\Mount Service folder.
During secure restore, Veeam Backup & Replication reads settings from the configuration file and triggers the antivirus to scan backup files. The settings in the file are already predefined for the following antivirus software:
If you want to scan machine data with other antivirus software, you must add settings for this software to the antivirus configuration file. Mind that the antivirus software must support the command line interface (CLI).
|
If you made changes to the antivirus configuration file, you do not need to restart Veeam services on the backup server — Veeam Backup & Replication will perform the next malware scan with new settings. |
XML File Structure
The XML file describing antivirus settings has the following structure:
The XML file contains the following elements:
- Antiviruses. The element encapsulates the file with antivirus settings.
- AntivirusInfo. The element describes the antivirus software.
- ExitCodes. The element encapsulates messages that Veeam Backup & Replication displays on scan results.
- ExitCode. The element describes the subject and the body of the message that Veeam Backup & Replication displays on scan results.
The element has the following attributes:
Attribute | Description |
Name | Specifies the antivirus name. Veeam Backup & Replication will display this name in restore session logs. |
IsPortableSoftware | Indicates if antivirus software is portable:
|
Specifies the path to the antivirus executable file. | |
CommandLineParameters | Specifies antivirus commands that you want to execute during the scan. Make sure that the antivirus supports the specified commands. For example, the list of commands for ESET is available in this ESET KB article. Note: The %Path% variable is required for this attribute. During secure restore, Veeam Backup & Replication substitutes this variable for the path to the folder with mounted disks (C:\VeeamFLR\<machinename>). |
Specifies the antivirus registry key. | |
Specifies the name of the antivirus service. | |
ThreatExistsRegEx | Specifies regular expressions. A regular expression is a sequence of characters that form a search pattern. Veeam Backup & Replication will search the antivirus output messages for the specified regular expression. If any of the output messages match the expression, Veeam Backup & Replication will notify you on detected threat. Note: You must have a good understanding of the regular expression language to specify this attribute properly. For more information on the regular expression language, see Microsoft Docs. |
Indicates if the antivirus will run multiple jobs to scan files on mounted disks simultaneously. If you set this attribute to True, Veeam Backup & Replication will lock the antivirus to perform the scan for the current restore session. The antivirus will not be available for other sessions with enabled secure restore until the scan completes. The default value for antivirus lock time-out is 24 hours. If the scan does not complete after this period, Veeam Backup & Replication will finish other restore sessions as specified in the restore wizard: abort restore sessions or restore machines (or its disks) with restrictions. Note: You can change the lock time-out using registry keys. For more information, contact Veeam Support. If the antivirus CLI does not support multiple scan jobs, set this attribute to False. |
The element has the following attributes:
Attribute | Description |
Type | Specifies the subject of the message that Veeam Backup & Replication will display on scan results:
|
Description | Specifies the body of the message that Veeam Backup & Replication will display on scan results. |
|
You can distribute the XML configuration file among other mount servers in your backup infrastructure using Veeam PowerShell. For more information, see the Copy-VBRAntivirusConfigurationFile section in the Veeam PowerShell Reference. |