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.

ps_mob_user_group_remark

Examples

EXAMPLE 1

PS C:\>Get-OBPolicy | Get-OBFileSpec

This example gets the file specification for a given policy.

Required Parameters

-Policy

Specify the policy from which to obtain the list of file specifications.

Type:CBPolicy
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBFileSpec[]