Set-VBRComputerIndexingOptions
Short Description
Modifies indexing settings for Veeam Agent backup jobs.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRComputerIndexingOptions -Options <VBRComputerIndexingOptions> [-IndexingMode <VBRIndexingMode>] [-IndexingInclusion <String[]>] [-IndexingExclusion <String[]>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies indexing settings for Veeam Agent backup job.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
IndexingExclusion |
For the Specifies the list of the folders that you want to exclude from indexing. |
|
False |
Named |
False |
|
IndexingInclusion |
For the Specifies the list of the folders that you want to index. |
|
False |
Named |
False |
|
IndexingMode |
Specifies indexing scope settings:
Note: Veeam Backup & Replication will exclude the system directories from indexing. |
|
False |
Named |
False |
|
Options |
Specifies the protection group indexing options that you want to modify.
Accepts the |
|
True |
Named |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRComputerIndexingOptions object that contains file indexing settings for Veeam Agent backup jobs.
Examples
Modifying Indexing Settings for Veeam Agent Backup Job (Windows)
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.
|
$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 |
Perform the following steps:
- Run the
Get-VBRProtectionGroupReturns protection groups. cmdlet. Specify theNameparameter value Save the result to the$groupvariable. - Run the
New-VBRComputerIndexingOptionsCreates indexing settings for Veeam Agent backup jobs. cmdlet. Set the$groupvariable as theBackupObjectparameter value. Specify theOSPlatform,IndexingModeandIndexingInclusionparameter values. Save the result to the$indexvariable. - Run the
Set-VBRComputerIndexingOptionscmdlet. Set the$indexvariable as theOptionsparameter value. Set theIndexEverythingoption for theIndexingModeparameter.
Related Commands
Get-VBRProtectionGroupReturns protection groups.New-VBRComputerIndexingOptionsCreates indexing settings for Veeam Agent backup jobs.