Start-WssServerVolumeRestore
Starts a volume restore operation.
Syntax
Start-WssServerVolumeRestore
[-BackupSet] <BackupSet>
[-VolumeToRestore] <BackupVolume>
[-DestinationVolume] <BackupVolume>
[-Confirm]
[-WhatIf]
Description
The Start-WssServerVolumeRestore cmdlet starts a volume restore operation on a sbs_sbs8_2 server.
Examples
Example 1: Restore a 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]
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.
Parameters
-BackupSet
Specifies a backup set from which to restore a volume.
Type: | BackupSet |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
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 |
-DestinationVolume
Specifies a destination volume to which to restore a source volume.
Type: | BackupVolume |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VolumeToRestore
Specifies a source volume to restore.
Type: | BackupVolume |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for