Get-OBFileSpec
Gets the list of OBFileSpec objects associated with the specified backup policy (OBPolicy object).
Syntax
Default (Default)
Get-OBFileSpec
[-Policy] <CBPolicy>
Description
The Get-OBFileSpec cmdlet gets the list of OBFileSpec[] objects associated with the specified backup policy (OBPolicy object). The OBFileSpec[] objects define what items will be included or excluded from backups created using the backup policy. Use the New-OBFileSpec and Add-OBFileSpec cmdlets to define and apply changes to the backup policy.
To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.
Examples
EXAMPLE 1
Get-OBPolicy | Get-OBFileSpec
This example gets the file specification for a given policy.
Parameters
-Policy
Specify the policy from which to obtain the list of file specifications.
Parameter properties
| Type: | CBPolicy |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 1 |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |