SYNOPSIS
Allows setting of recovery options for various servers.
SYNTAX
New-RecoveryOption -PrimaryDpmServer -RecoverToReplicaFromTape [-DPMLibrary
<Library>
] [-RecoveryLocation
<RecoveryLocation>
] [-SANRecovery] [-TargetServer
<String>
] [
<CommonParameters>
]
New-RecoveryOption -FileSystem -OverwriteType
<OverwriteType>
-RecoverToReplicaFromTape -RecoveryType
<RecoveryType>
[-AlternateLocation
<String>
] [-DPMLibrary
<Library>
] [-RecoveryLocation
<RecoveryLocation>
] [-RestoreSecurity] [-SANRecovery] [-TargetServer
<String>
] [
<CommonParameters>
]
New-RecoveryOption -DatabaseFileTempLocation
<String>
-ExportFileTempLocation
<String>
-IntermediateSharepointServer
<String>
-IntermediateSqlInstance
<String>
-RecoverToReplicaFromTape -RecoveryType
<RecoveryType>
-SharePointSite [-DPMLibrary
<Library>
] [-RecoveryLocation
<RecoveryLocation>
] [-RestoreSecurity] [-SANRecovery] [-TargetLocation
<String>
] [-TargetServer
<String>
] [-TargetSiteUrl <String>] [
<CommonParameters>
]
New-RecoveryOption -GenericDatasource -RecoverToReplicaFromTape -RecoveryType
<RecoveryType>
[-DPMLibrary
<Library>
] [-RecoveryLocation
<RecoveryLocation>
] [-RestoreSecurity] [-SANRecovery] [-TargetLocation
<String>
] [-TargetServer
<String>
] [
<CommonParameters>
]
New-RecoveryOption -RecoverToReplicaFromTape -RecoveryType
<RecoveryType>
-SQL [-AlternateDatabaseDetails
<AlternateDatabaseDetailsType>
] [-CopyLogFiles] [-DPMLibrary
<Library>
] [-LeaveDBInRestoringState] [-LogFileCopyLocation
<String>
] [-RecoveryLocation
<RecoveryLocation>
] [-RestoreSecurity] [-RollForwardRecovery] [-SANRecovery] [-TargetLocation
<String>
] [-TargetServer
<String>
] [
<CommonParameters>
]
New-RecoveryOption -Exchange -ExchangeOperationType
<ExchangeOperationType>
-RecoveryType
<RecoveryType>
[-AlternateDatabase
<String>
] [-AlternateStorageGroup
<String>
] [-DatabaseName
<String>
] [-IsRecoveryStorageGroup] [-MailboxDisplayName
<String>
] [-MountDatabaseAfterRestore] [-RestoreSecurity] [-RollForwardRecovery] [-SANRecovery] [-StorageGroupName
<String>
] [-TargetLocation
<String>
] [
<CommonParameters>
]
New-RecoveryOption -RecoverToReplicaFromTape -RecoveryType
<RecoveryType>
-SharePoint [-DPMLibrary
<Library>
] [-RecoveryLocation
<RecoveryLocation>
] [-RestoreSecurity] [-SANRecovery] [-TargetLocation
<String>
] [-TargetServer
<String>
] [
<CommonParameters>
]
DETAILED DESCRIPTION
The New-RecoveryOption cmdlet allows setting of recovery options for file servers, Exchange, Windows Sharepoint Services servers, Windows SharePoint Services sites, SQL servers and other data sources.
PARAMETERS
-DatabaseFileTempLocation <String>
Temporary location for a database file.
-Exchange
Indicates that the current operation is being performed on an Microsoft Exchange data source.
-ExchangeOperationType <ExchangeOperationType>
Indicates the type of operation to be carried out. The valid values are NoOperation, MailBoxLevelRecovery, and NeedCleanShutdown.
-ExportFileTempLocation <String>
Location of the export file
-FileSystem
Indicates operation is done on a file system datasource
-GenericDatasource
Indicates that the current operation is being performed on a data source like Microsoft Virtual Server.
-IntermediateSharepointServer <String>
A Windows Sharepoint Services server used during Microsoft Windows Services site recovery. It should have a Windows Sharepoint Services farm installed.
-IntermediateSqlInstance <String>
A SQL server used during Windows Sharepoint Services site recovery. It is used to temporarily host a SQL database.
-OverwriteType <OverwriteType>
Indicates the action to be taken when the file being recovered already exists. The possible values are - CreateCopy, Skip, Overwrite.
-PrimaryDpmServer
Indicates that the recovery is to a DPM server.
-RecoverToReplicaFromTape
Indicates that recovery to the replica must happen from a tape.
-RecoveryType <RecoveryType>
Indicates that the recovery type is Recover or Restore.
-SharePoint
Indicates that the current operation is being performed on a Windows Sharepoint Services data source.
-SharePointSite
Indicates that the operation is being carried out on a Windows SharePoint Services site.
-SQL
Indicates that the current operation is being performed on an Microsoft SQL data source.
-AlternateDatabase <String>
Name of an alternate database.
-AlternateDatabaseDetails <AlternateDatabaseDetailsType>
The type of database.
-AlternateLocation <String>
Name of an alternate location to which a recovery point must be made.
-AlternateStorageGroup <String>
Name of an alternate storage group for a new recovery point.
-CopyLogFiles
Indicates that the log files have to be copied.
-DatabaseName <String>
Name of a database
-DPMLibrary <Library>
A DPM library object.
-IsRecoveryStorageGroup
Indicates if the recovery is a recovery storage group.
-LeaveDBInRestoringState
This is a switch parameter. If you do not use the parameter it indicates that the database should be left non-operational but in a restorable state. If you use the parameter it indicates that the database should be left operational
-LogFileCopyLocation <String>
Location to which the log files must be copied.
-MailboxDisplayName <String>
The name to be displayed on the mailbox.
-MountDatabaseAfterRestore
Indicates that the database should be automatically mounted after restore.
-RecoveryLocation <RecoveryLocation>
Indicates to what location the recovery is being done. The valid values are OriginalServer, CopyToFolder, OriginalServerWithDBRename, AlternateExchangeServer, and ExchangeServerDatabase.
-RestoreSecurity
Indicates the security settings to use during a restore operation. This is a switch parameter. When you use the -RestoreSecurity parameter in the cmdlet, it indicates that the security settings from the recovery point will be used. If the -RestoreSecurity parameter is not used, it indicates that the security settings of the destination server will be used.
-RollForwardRecovery
Indicates that the application should be recovered from the latest recovery point and all logs after that recovery point should be applied to bring the application to the latest state.
-SANRecovery
-StorageGroupName <String>
Name of a storage group.
-TargetLocation <String>
The location where the replica has to be stored.
-TargetServer <String>
The server to which recovery is made.
-TargetSiteUrl <String>
The URL to which recovery is made.
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, type, "get-help about_commonparameters".
EXAMPLE 1
New-RecoveryOption -TargetServer test.contoso.com -RecoveryLocation copytofolder -FileSystem -AlternateLocation "f:\restore" -OverwriteType overwrite -RestoreSecurity -RecoveryType Restore
This command recovers the file system to test.domain.com and restores the original security settings.
REMARKS
For more information, type: "get-help New-RecoveryOption -detailed".
For technical information, type: "get-help New-RecoveryOption -full".