New-DPMRecoveryTarget
New-DPMRecoveryTarget
Creates a recovery target.
Syntax
Parameter Set: Restricted
New-DPMRecoveryTarget [-Type] <AmDatasourceType> {SqlDatabase | SqlInstance | Client} [-RecoveryTarget] <String> [-RecoveredFilesPath] <String> [ <CommonParameters>]
Parameter Set: Unrestricted
New-DPMRecoveryTarget [-Type] <AmDatasourceType> {SqlDatabase | SqlInstance | Client} [-RecoveryTarget] <String> [-Unrestricted] [ <CommonParameters>]
Detailed Description
The New-DPMRecoveryTarget cmdlet creates a recovery target.
Parameters
-RecoveredFilesPath<String>
Specifies the folder on the SQL Server recovery instance that the user has permissions to recover for alternate instance recovery.
Aliases |
none |
Required? |
true |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-RecoveryTarget<String>
Specifies the SQL Server instance for alternate instance recovery.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Type<AmDatasourceType>
Specifies the type of data source that the cmdlet uses. The acceptable values for this parameter are:
-- SqlDatabase
-- SqlInstance
-- Client
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Unrestricted
Indicates that users can recover database files to any location for which the users have write permission.
Aliases |
none |
Required? |
true |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Notes
- For more information, type "
Get-Help New-DPMRecoveryTarget -detailed
".
Examples
Example 1: Create a recovery target
This command creates a recovery target for the instance of SQL Server named West01DB. The RecoveredFilesPath parameter specifies the target location where users can recover the files for their databases.
PS C:\> New-DPMRecoveryTarget -Type SQLInstance -RecoveryTarget "ProductionServer\Unit01Instance\West01DB" -RecoveredFilesPath "C:\DPMrecovered"