Start-WssServerVolumeRestore
Starts a volume restore operation.
Start-WssServerVolumeRestore
[-BackupSet] <BackupSet>
[-VolumeToRestore] <BackupVolume>
[-DestinationVolume] <BackupVolume>
[-Confirm]
[-WhatIf]
The Start-WssServerVolumeRestore cmdlet starts a volume restore operation on a sbs_sbs8_2 server.
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.
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 |
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 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 |
Specifies a source volume to restore.
Type: | BackupVolume |
Position: | 2 |
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 |