Start-WssServerFileRestore

Starts a file restore operation.

Syntax

Start-WssServerFileRestore
     [-BackupSet] <BackupSet>
     [-RecoveryItems] <System.Collections.Generic.IList`1[Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.RecoveryItem]>
     [[-RecoveryLocation] <String>]
     [-RecoveryOption] <RecoveryOptions>
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

The Start-WssServerFileRestore cmdlet starts a file restore operation on a sbs_sbs8_2 server.

Examples

Example 1: Restore files on a 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.

Parameters

-BackupSet

Specifies a backup set from which to restore the recovery items.

Type:BackupSet
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RecoveryItems

Specifies a list of items to restore.

Type:IList<T>[Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.RecoveryItem]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-RecoveryLocation

Specifies the location to which to restore the items.

Type:String
Position:2
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RecoveryOption

Specifies the restore options, such as whether to overwrite existing files or to restore file permissions.

Type:RecoveryOptions
Position:3
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
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False