Start-WBApplicationRecovery
Starts an application recovery operation.
Syntax
Default (Default)
Start-WBApplicationRecovery
[-BackupSet] <WBBackupSet>
[-ApplicationInBackup] <WBApplication>
[[-RecoveryTarget] <String>]
[-NoRollForward]
[-Async]
[-Force]
[<CommonParameters>]
Description
The Start-WBApplicationRecovery cmdlet starts an application recovery operation. To perform application recovery, you must specify the backup set from which to recover the application and the application to recover. The application to recover must exist in the application array for the backup set specified. If you do not specify a recovery target, the operation recovers the application to the application's original location.
Examples
Example 1: Start an application recovery operation
PS C:\> $Backup = Get-WBBackupSet
PS C:\> Start-WBApplicationRecovery -BackupSet $Backup -ApplicationInBackup $Backup.Application[0] -RecoveryTarget "F:\"
Warning
Start recovery of application Registry to F:\ ?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
Recovering component Registry :
Recovering component Registry : Preparing to recover.
Completed.
This example recovers an application to a file path.
The first command gets the backup object from the system catalog and stores it in the variable named $Backup.
The second command starts the recovery by specifying $Backup as the backup set, and specifying the first element of the application array within the backup set. The first element of the application array is the registry.
Parameters
-ApplicationInBackup
Specifies an application object that contains the application that this cmdlet recovers. This application must exist in the backup set's application array.
Parameter properties
| Type: | WBApplication |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 1 |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Async
Indicates that Windows PowerShell returns immediately after starting the backup without displaying status messages to the console.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 4 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-BackupSet
Specifies a backup set object that contains the backup set from which to recover the application.
Parameter properties
| Type: | WBBackupSet |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Force
Forces the command to run without asking for user confirmation.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 5 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-NoRollForward
Indicates that this cmdlet recovers applications 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.
Parameter properties
| Type: | SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 3 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-RecoveryTarget
Specifies the path to which the recovery operation recovers the application.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 2 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
WBBackupSet, WBApplication
Outputs
String
If you do not specify the Async parameter, the recovery operation displays status messages at periodic intervals until the recovery is complete.
While the recovery operation is running, you can use the Get-WBJob cmdlet to get the status of the operation.
After the operation is complete you can use the Get-WBJob -Previous 1 command to get the completed recovery status.