Share via


Get-DPMInitialOnlineBackupCreationMethod

Get-DPMInitialOnlineBackupCreationMethod

Gets the method of initial online backup for a protection group.

Syntax

Parameter Set: Default
Get-DPMInitialOnlineBackupCreationMethod [-ProtectionGroup] <ProtectionGroup> [ <CommonParameters>]

Detailed Description

The Get-DPMInitialOnlineBackupCreationMethod cmdlet gets the method of initial online backup for a System Center 2012 R2 - Data Protection Manager (DPM) protection group.

Parameters

-ProtectionGroup<ProtectionGroup>

Specifies a protection group for which this cmdlet gets an online backup method. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

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: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

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

Outputs

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

  • Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.InitialOnlineBackupMethod

    This cmdlet generates an InitialOnlineBackupMethod object that contains the following properties:

    -- IBMethod. The method of initial online backup. Valid values are: Network and OfflineBackup.
    -- OfflineBackupParams. The offline backup properties are the following: StagingLocation, AzurePublishSettingsFile, AzureImportJobName, AzureSubscriptionID, AzureStorageAccount, and AzureStorageContainer.

Examples

Example 1: Get initial online backup method for a protection group

The first command gets a protection group by using the Get-DPMProtectionGroup cmdlet. That cmdlet gets all protection groups, and passes them to the Where-Object cmdlet by using the pipeline operator. That cmdlet finds the desired group, and then stores that group in the $PGroup variable. For more information, type Get-Help Where-Object.

The second command gets the method of initial online backup for the protection group in $PGroup.

PS C:\> $PGroup = Get-DPMProtectionGroup | Where {$_.FriendlyName -like "MyPG"}
PS C:\> Get-DPMInitialOnlineBackupCreationMethod -ProtectionGroup $PGroup

Set-DPMInitialOnlineBackupCreationMethod

Get-DPMProtectionGroup