Add-ChildDatasource
Add-ChildDatasource
Adds a data source or a child data source to a protection group.
Syntax
Add-ChildDatasource [-ProtectionGroup] <ProtectionGroup> [-ChildDatasource] <ProtectableObject> [[-Online] <SwitchParameter>] [-PassThru <SwitchParameter>] [<CommonParameters>]
Detailed Description
The Add-ChildDatasource cmdlet adds a data source or a child data source to a protection group. A child data source refers to folders on a protected volume.
If you add a data source that was excluded using the Remove-ChildDatasource cmdlet, the exclusion is over-ridden.
Parameters
-ProtectionGroup
The name of a protection group.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
0 |
-ChildDatasource
A data source that can be protected individually. For example, a folder in a file system.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
1 |
-Online
With Add-ProtectableObject: Indicates that the protectable object must be also protected with DPM Online.
With New-RecoveryPoint: Indicates that the recovery point must be created on DPM Online.
With Remove-DatasourceReplica: Indicates that data retained on DPM Online must be deleted.
With Remove-ChildDatasource: Indicates that the protectable object is removed from protection on DPM Online.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
2 |
-PassThru
The -PassThru parameter can be used with many commands in DPM to return a related object in cases where there is no default output. Using the PassThru parameter allows such cmdlets to be part of a pipeline.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
-CommonParameter
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.
Input and Return Types
The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.
Notes
For more information, type "Get-Help Add-ChildDatasource -detailed".
For technical information, type "Get-Help Add-ChildDatasource-full".Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.
Examples
EXAMPLE 1
$pg = Get-ProtectionGroup -DPMServerName "TestingServer"
$mpg=Get-ModifiableProtectionGroup $pg[0]
$po = Get-Datasource -ProductionServer $pg
Add-ChildDatasource -ProtectionGroup $mpg -ChildDatasource $po[8]
This command adds a child data source to a protection group.