Get-OBPolicy

Get-OBPolicy

Gets the current backup policy set for the server.

Syntax

Get-OBPolicy [ <CommonParameters>]

Detailed Description

The Get-OBPolicy cmdlet gets the current backup policy that is set for the server, including the details about scheduling backups, files included in the backup, and retention policy.

Once the changes have been made to the policy object, the updated policy should be set as the current one using the Set-OBPolicy cmdlet.

Parameters

<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.OBPolicy[]

Examples

EXAMPLE 1

This example returns a saved policy.

PS C:\> Get-OBPolicy

Set-OBPolicy