Get-OBFileSpec

Gets the list of OBFileSpec objects associated with the specified backup policy (OBPolicy object).

Syntax

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.

Type:CBPolicy
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBFileSpec[]