Start-WssServerVolumeRestore

Start-WssServerVolumeRestore

Starts a volume restore operation.

構文

Parameter Set: Default
Start-WssServerVolumeRestore [-BackupSet] <BackupSet> [-VolumeToRestore] <BackupVolume> [-DestinationVolume] <BackupVolume> [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Start-WssServerVolumeRestore cmdlet starts a volume restore operation on a server.

パラメーター

-BackupSet<BackupSet>

Specifies a backup set from which to restore a volume.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-DestinationVolume<BackupVolume>

Specifies a destination volume to which to restore a source volume.

エイリアス

なし

必須?

true

位置は?

3

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VolumeToRestore<BackupVolume>

Specifies a source volume to restore.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

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)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Restore a volume

This example restores a volume from a backup set.

The first command uses the Get-WssBackupPolicy cmdlet to get the current backup policy, and stores the results in the variable $Policy.

The second command uses the Get-WssBackupVolume cmdlet to get the backup volumes that are backed up with this policy, and stores the result in the variable named $Source.

The third command uses the Get-WssBackupVolume cmdlet to get the volumes on the system, and stores the result in the variable named $Destination.

The fourth command uses the Get-WssBackupSet cmdlet to retrieve the backup sets, and stores the result in the variable named $Backupset.

The fifth command uses the Get-WssServerVolumeRestore cmdlet to restore the volume.

PS C:\> $Policy = Get-WssBackupPolicy
PS C:\> $Source = Get-WssBackupVolume -BackupPolicy $Policy
PS C:\> $Destination = Get-WssBackupVolume -AllVolumes
PS C:\> $Backupset = Get-WssBackupSet
PS C:\> Start-WssServerVolumeRestore -BackupSet $Backupset[0] -VolumeToRestore $Source[2] -DestinationVolume $Destination[2]