Start-WssServerFileRestore
Starts a file restore operation.
Start-WssServerFileRestore
[-BackupSet] <BackupSet>
[-RecoveryItems] <IList<RecoveryItem>>
[[-RecoveryLocation] <String>]
[-RecoveryOption] <RecoveryOptions>
[-Confirm]
[-WhatIf]
The Start-WssServerFileRestore cmdlet starts a file restore operation on a sbs_sbs8_2 server.
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
This example restores files on a sbs_sbs8_2 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.
Specifies a backup set from which to restore the recovery items.
Type: | BackupSet |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies a list of items to restore.
Type: | IList<RecoveryItem> |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the location to which to restore the items.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the restore options, such as whether to overwrite existing files or to restore file permissions.
Type: | RecoveryOptions |
Position: | 4 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |