Start-WssServerFileRestore
Start-WssServerFileRestore
Starts a file restore operation.
構文
Parameter Set: Default
Start-WssServerFileRestore [-BackupSet] <BackupSet> [-RecoveryItems] <IList<RecoveryItem>> [[-RecoveryLocation] <String> ] [-RecoveryOption] <RecoveryOptions> [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Start-WssServerFileRestore cmdlet starts a file restore operation on a server.
パラメーター
-BackupSet<BackupSet>
Specifies a backup set from which to restore the recovery items.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-RecoveryItems<IList<RecoveryItem>>
Specifies a list of items to restore.
エイリアス |
なし |
必須? |
true |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-RecoveryLocation<String>
Specifies the location to which to restore the items.
エイリアス |
なし |
必須? |
false |
位置は? |
3 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-RecoveryOption<RecoveryOptions>
Specifies the restore options, such as whether to overwrite existing files or to restore file permissions.
エイリアス |
なし |
必須? |
true |
位置は? |
4 |
既定値 |
なし |
パイプライン入力を許可する |
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 files on a server
This example restores files on a server.
The first command uses the Get-WssRecoveryItem cmdlet to retrieve the recovery items, and stores the result in the variable named Items.
The second command uses New-WssRecoveryOption to create a recovery configuration for a file restore operation, and stores the result in the variable named Option.
The third command uses Get-WssBackupSet to retrieve a collection of backup sets, and stores the collection in a variable named Backupsets.
The fourth command uses Start-WssServerFileRestore to start a file restore operation on the server using the second backup set.
PS C:\> $Items = Get-WssRecoveryItem
PS C:\> $Option = New-WssRecoveryOption
PS C:\> $Backupsets = Get-WssBackupSet
PS C:\> Start-WssServerFileRestore -BackupSet $Backupsets[1] -RecoveryItems $Items -RecoveryOption $Option