共用方式為


Get-DPMInitialOnlineBackupCreationMethod

取得保護群組的初始在線備份方法。

語法

Get-DPMInitialOnlineBackupCreationMethod
   [-ProtectionGroup] <ProtectionGroup>
   [<CommonParameters>]

Description

Get-DPMInitialOnlineBackupCreationMethod Cmdlet 會取得 System Center - Data Protection Manager (DPM) 保護群組的初始在線備份方法。

範例

範例 1:取得保護群組的初始在線備份方法

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

第一個命令會使用 Get-DPMProtectionGroup Cmdlet 來取得保護群組。 該 Cmdlet 會取得所有保護群組,並使用管線運算符將它們傳遞至 Where-Object Cmdlet。 該 Cmdlet 會尋找所需的群組,然後將該群組儲存在 $PGroup 變數中。 如需詳細資訊,請輸入 Get-Help Where-Object

第二個命令會取得 $PGroup 中保護群組的初始在線備份方法。

參數

-ProtectionGroup

指定此 Cmdlet 取得在線備份方法的保護群組。 若要取得 ProtectionGroup 物件,請使用 Get-DPMProtectionGroup Cmdlet。

類型:ProtectionGroup
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸出

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

此 Cmdlet 會產生包含下列屬性的 InitialOnlineBackupMethod 物件:

  • IBMethod。 初始在線備份的方法。 有效值為:網路和 OfflineBackup。
  • OfflineBackupParams。 脫機備份屬性如下:StagingLocationAzurePublishSettingsFileAzureImportJobNameAzureSubscriptionIDAzureStorageAccount,以及 AzureStorageContainer