Start-WBHyperVRecovery
Start-WBHyperVRecovery
Starts recovery of a virtual machine.
구문
Parameter Set: Default
Start-WBHyperVRecovery [-BackupSet] <WBBackupSet> [-VMInBackup] <WBVirtualMachine[]> [[-TargetPath] <String> ] [[-NoRollForward]] [[-Async]] [[-Force]] [[-UseAlternateLocation]] [[-RecreatePath]] [ <CommonParameters>]
자세한 설명
The Start-WBHyperVRecovery cmdlet starts a recovery operation for a Hyper-V virtual machine (VM). Use the application array from a WBBackupSet object to specify the VMs that you want to recover.
For an overview of Hyper-V, see HyperV Overview (https://technet.microsoft.com/en-us/library/hh831531.aspx) on TechNet.
매개 변수
-Async
Indicates that Windows PowerShell® returns immediately after it starts the recovery and does not display status messages.
별칭 |
없음 |
필수 여부 |
false |
위치 |
5 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-BackupSet<WBBackupSet>
Specifies a backup set object that contains a Hyper-V application backup.
별칭 |
없음 |
필수 여부 |
true |
위치 |
1 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByValue) |
와일드카드 문자 허용 여부 |
false |
-Force
Indicates that the cmdlet starts the recovery operation without prompting you for confirmation. By default, the cmdlet prompts you for confirmation before it proceeds.
별칭 |
없음 |
필수 여부 |
false |
위치 |
6 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-NoRollForward
Indicates that you can recover a VM from a previous point in time if you select the latest version of the application from the backups. For versions of the application other than the latest version, the operation uses point-in-time recovery by default.
별칭 |
없음 |
필수 여부 |
false |
위치 |
4 |
기본값 |
False |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-RecreatePath
Indicates that the recovery operation recreates the original folder structure when it restores a VM. This option applies only if you recover a VM to an alternate location. If you do not specify this option, the recovery puts all files for a component under a single folder.
별칭 |
없음 |
필수 여부 |
false |
위치 |
8 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-TargetPath<String>
Specifies an alternate location in the backup set where the recovery process searches for files.
별칭 |
없음 |
필수 여부 |
false |
위치 |
3 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-UseAlternateLocation
Indicates that you can use the recovery process to recover Hyper-V components, update configuration, and register the VM with the Hyper-V management service. This option applies only if you recover a VM to an alternate location.
별칭 |
없음 |
필수 여부 |
false |
위치 |
7 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-VMInBackup<WBVirtualMachine[]>
Specifies a list of virtual machine objects that contain the VMs to recover. This list must contain VMs from the Hyper-V application object in the backup set's application array.
별칭 |
없음 |
필수 여부 |
true |
위치 |
2 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByValue) |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
- WBBackupSet, WBVirtualMachine
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
- System.String
예제
Example 1: Recover a VM to its original location
This example recovers a VM to its original location.
The first command gets the backup set object from the system catalog and stores it in the variable named $Backup.
The second command uses the backup set stored in $Backup to recover a VM that has the ID 285CEA9B-E337-44E1-9BF9-BF431BC3EB35 to its original location.
PS C:\> $Backup = Get-WBBackupSet
PS C:\> Start-WBHyperVRecovery -BackupSet $Backup -VMInBackup $Backup.Application[0].Component[0]
Example 2: Recover a VM to an alternate location
This example recovers a VM to an alternate location.
The first command gets the backup set object from the system catalog and stores it in the variable named $Backup.
The second command recovers the VM that has the ID F7D8AAF4-D086-47CC-8264-61F80527BFF4 to an alternate location.
PS C:\> $Backup = Get-WBBackupSet
PS C:\> Start-WBHyperVRecovery -BackupSet $Backup -VMInBackup $Backup.Application[0].Component[1] -TargetPath F:\Dir1 -UseAlternateLocation -RecreatePath