New-DPMRecoveryPoint
New-DPMRecoveryPoint
Creates a recovery point.
構文
Parameter Set: ApplicationOnDisk
New-DPMRecoveryPoint [-Datasource] <Datasource[]> -Disk [-AdhocJobsContext <AdhocJobsContext> ] [-BackupType <DbEnums+BackupType> {ExpressFull | Incremental} ] [-JobStateChangedEventHandler <JobStateChangedEventHandler> ] [-WithDataIntegrityCheck] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: FileSystemOnDisk
New-DPMRecoveryPoint [-Datasource] <Datasource[]> -Disk -DiskRecoveryPointOption <DbEnums+CreateDiskRecoveryPointOption> {WithSynchronize | WithoutSynchronize | OnlySynchronize} [-AdhocJobsContext <AdhocJobsContext> ] [-JobStateChangedEventHandler <JobStateChangedEventHandler> ] [-WithDataIntegrityCheck] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: LongTermCloud
New-DPMRecoveryPoint [-Datasource] <Datasource[]> -Online [-AdhocJobsContext <AdhocJobsContext> ] [-JobStateChangedEventHandler <JobStateChangedEventHandler> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: TapeData
New-DPMRecoveryPoint [-Datasource] <Datasource[]> -ProtectionType <DbEnums+ProtectionType> {ShortTerm | LongTerm} -Tape [-AdhocJobsContext <AdhocJobsContext> ] [-JobStateChangedEventHandler <JobStateChangedEventHandler> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The New-DPMRecoveryPoint cmdlet creates a recovery point for a data source. You can create a recovery point for short-term and long-term protection types.
パラメーター
-AdhocJobsContext<AdhocJobsContext>
Specifies the context details of the adhoc job. Do not use this parameter from the Windows PowerShell command line.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-BackupType<DbEnums+BackupType>
Specifies the type of backup. The acceptable values for this parameter are:
-- ExpressFull
-- Incremental
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Datasource<Datasource[]>
Specifies an array of data source objects. Data source objects include the following:
-- Windows file system share or volume.
-- Microsoft SQL Server database.
-- Microsoft Exchange storage group.
-- Microsoft SharePoint farm.
-- Microsoft Virtual Machine.
-- DPM database.
-- A system state that is a member of a protection group.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-Disk
Indicates that DPM creates the recovery point on a disk.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DiskRecoveryPointOption<DbEnums+CreateDiskRecoveryPointOption>
Specifies whether DPM creates a recovery point while synchronizing, or whether DPM synchronizes only and does not create a recovery point. The acceptable values for this parameter are:
-- WithSynchronize
-- WithoutSynchronize
-- OnlySynchronize
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-JobStateChangedEventHandler<JobStateChangedEventHandler>
Specifies an event handler for Job.StateChanged events. You can use this parameter to update a GUI that runs in Windows PowerShell, but do not use it in the Windows PowerShell console.
エイリアス |
Handler |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Online
Specifies that DPM enables online protection.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ProtectionType<DbEnums+ProtectionType>
Specifies a protection type. The only valid value is Tape.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Tape
Specifies that the recovery point is a tape.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WithDataIntegrityCheck
Indicates that DPM performs a data integrity check during recovery.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- Job
注
- For more information, type "
Get-Help New-DPMRecoveryPoint -detailed
".
例
Example 1: Create a recovery point and run a backup
This example creates a recovery point for a data source and performs a backup.
The first command gets the protection group on the DPM server named DPMServer02 and store the results in the $Pg variable.
The second command gets the list of protected and unprotected data in the protection group stored in the $Pg variable. The command stores the results in the $Ds variable.
The third command creates a recovery point for the data source stored in the $Ds variable, and performs an expressfull backup.
PS C:\> $Pg = Get-DPMProtectionGroup -DPMServerName "DPMServer02"PS C:\> $Ds = Get-DPMDatasource -ProtectionGroup $PgPS C:\> New-DPMRecoveryPoint -Datasource $Ds -Disk -BackupType expressfull
Example 2: Create a recovery point and synchronize with the data source
This example creates a recovery point for a data source and synchronizes the recovery point with the data source.
The first command gets the protection group on the DPM server named DPMServer02 and store the results in the $Pg variable.
The second command gets the list of protected and unprotected data in the protection group stored in the $Pg variable. The command stores the results in the $Ds variable.
The third command creates a recovery point for the data source stored in the $Ds variable, and synchronizes the recovery point with the data source.
PS C:\> $Pg = Get-DPMProtectionGroup -DPMServerName "DPMServer02"PS C:\> $Ds = Get-DPMDatasource -ProtectionGroup $PgPS C:\> New-DPMRecoveryPoint -Datasource $Ds -Disk -DiskRecoveryPointOption withsynchronize
Example 3: Create a short-term recovery point on tape
This example creates a short-term recovery point on tape for a data source.
The first command gets the protection group on the DPM server named DPMServer02 and store the results in the $Pg variable.
The second command gets the list of protected and unprotected data in the protection group stored in the $Pg variable. The command stores the results in the $Ds variable.
The third command creates a recovery point on tape for the data source stored in the $Ds variable, and sets the protection type to short-term.
PS C:\> $Pg = Get-DPMProtectionGroup -DPMServerName "DPMServer02"PS C:\> $Ds = Get-DPMDatasource -ProtectionGroup $PgPS C:\> New-DPMRecoveryPoint -Datasource $Ds -Tape -ProtectionType ShortTerm