Set-VBRComputerIndexingOptions
Short Description
Modifies indexing settings for Veeam Agent backup jobs.
Applies to
Product Edition: Community, Standard, Enterprise, Enterprise Plus
Syntax
Set-VBRComputerIndexingOptions -Options <VBRComputerIndexingOptions> [-IndexingMode <VBRIndexingMode> {Disable | IndexEverything | IndexIncludedOnly | IndexEverythingExceptExcluded}] [-IndexingInclusion <string[]>][-IndexingExclusion <string[]>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies indexing settings for Veeam Agent backup job. To modify settings, enter the necessary parameters with new values. The parameters that you omit will remain unchanged.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Options | Specifies the protection group indexing options that you want to modify. Accepts the VBRComputerIndexingOptions type. | True | Named | True (ByValue) |
|
IndexingMode | Specifies indexing scope settings:
NOTE: Veeam Backup & Replication will exclude the system directories from indexing. | False | Named | False |
|
IndexingInclusion | For the IndexIncludedOnly mode. Specifies the list of the folders that you want to index. | False | Named | False |
|
IndexingExclusion | For the IndexEverythingExceptExcluded mode. Specifies the list of the folders that you want to exclude from indexing. | False | Named | False |
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Return Type
Example
This example shows how to modify indexing settings for a Veeam Agent job that backs up Windows computers. Veeam Backup & Replication will change the indexing scope and will index everything except for system folders.
- Run Get-VBRProtectionGroup to get a protection group. Save the result to the $group variable.
- Run New-VBRComputerIndexingOptions with the $group variable. Save the result to the $index variable.
- Run Set-VBRComputerIndexingOptions with the $index variable. Use the IndexingMode parameter with the IndexEverything value to index everything.
$group = Get-VBRProtectionGroup -Name "Windows Group" $index = New-VBRComputerIndexingOptions -BackupObject $group -OSPlatform Windows -IndexingMode IndexIncludedOnly -IndexingInclusion "C:/Desktop/MyFolder" Set-VBRComputerIndexingOptions -Options $index -IndexingMode IndexEverything |
Related Commands