Get-OBFileSpec

Get-OBFileSpec

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

Syntax

Parameter Set: Default
Get-OBFileSpec [-Policy] <CBPolicy> [ <CommonParameters>]

Detailed 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.

Parameters

-Policy<CBPolicy>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.Internal.CloudBackup.Commands.OBFileSpec[]

Examples

EXAMPLE 1

This example gets the file specification for a given policy.

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

Add-OBFileSpec

Get-OBPolicy

New-OBFileSpec