Get-DPMChildDatasource

Returns the protectable file system objects in a data source.

Syntax

Get-DPMChildDatasource
   [-ChildDatasource] <ProtectableObject>
   [-Inquire]
   [-Async]
   [[-ProtectionGroup] <ProtectionGroup>]
   [-Tag <Object>]
   [<CommonParameters>]

Description

The Get-DPMChildDatasource cmdlet returns the protectable file system objects, such as folders, that are in a data source, such as a file system volume. You can protect file systems at the child data source level, but you can protect applications only at the data source level.

Examples

Example 1: Get a child data source

PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer07"
PS C:\> $PObjects = Get-DPMDatasource -ProtectionGroup $PGroup
PS C:\> Get-DPMChildDatasource -ChildDatasource $PObjects[1] -Inquire

The first command gets all protection groups from the DPM server named DPMServer07, and then stores these groups in the $PGroup variable. You cannot edit these protection groups.

The second command gets the data source for the list of protection groups in $PGroup, and then stores this data source in the $PObjects variable.

The final command gets a list of the child data sources from element 1 of the $PObjects array variable. The command uses the Inquire parameter. Therefore, the command queries the protected computer.

Parameters

-Async

Indicates that the command runs asynchronously. When you run a command asynchronously, the command prompt returns immediately even if the job takes an extended time to finish.

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

-ChildDatasource

Specifies a data source, such as a folder in a file system, that System Center 2019 - Data Protection Manager (DPM) can protect individually.

Type:ProtectableObject
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Inquire

Indicates that the cmdlet queries the protected computer and returns the data sources or child data sources on it.

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

-ProtectionGroup

Specifies a protection group for which this cmdlet gets a data source. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

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

-Tag

Specifies a custom property that distinguishes the replies to each asynchronous call. You can use parameter if you build a graphical user interface by using cmdlets. Do not use this parameter if you work with the DPM Management Shell.

Type:Object
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

ChildDatasource