New-VBRComputerIndexingOptions
Short Description
Creates indexing settings for Veeam Agent backup jobs.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRComputerIndexingOptions -BackupObject <Object> -OSPlatform <VBRAgentType> -IndexingMode <VBRIndexingMode> [-IndexingInclusion <String[]>] [-IndexingExclusion <String[]>] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRComputerIndexingOptions object. This object contains file indexing settings for Veeam Agent backup jobs.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupObject |
Specifies the protection group, for which you want to add indexing settings.
Accepts the |
|
True |
Named |
True (ByValue) |
|
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. |
|
True |
Named |
False |
|
OSPlatform |
Specifies the OS of the protected computers:
|
|
True |
Named |
False |
<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
Creating Indexing Settings for Veeam Agent Backup Job (Linux)
This example shows how to create indexing settings for a Veeam Agent job that backs up Linux computers. Veeam Backup & Replication will index everything except for:
- System directories.
- The
/home/administrator/videos/directory.
|
$group = Get-VBRProtectionGroup -Name "Linux Group" New-VBRComputerIndexingOptions -BackupObject $group -OSPlatform Linux -IndexingMode IndexEverythingExceptExcluded -IndexingExclusion "/home/administrator/videos/" |
Perform the following steps:
- Run the
Get-VBRProtectionGroupReturns protection groups. cmdlet. Specify theNameparameter value. Save the result to the$groupvariable. - Run the
New-VBRComputerIndexingOptionscmdlet. Specify the following settings:- Set the
$groupvariable as theBackupObjectparameter value. - Set the
Linuxoption for theOSPlatformparameter. - Set the
IndexEverythingExceptExcludedoption for theIndexingModeparameter. - Specify the
IndexingExclusionparameter value.
- Set the
Related Commands
Get-VBRProtectionGroupReturns protection groups.