Поделиться через


Get-DPMChildDatasource

Get-DPMChildDatasource

Returns the protectable file system objects in a data source.

Syntax

Parameter Set: Default
Get-DPMChildDatasource [-ChildDatasource] <ProtectableObject> [[-ProtectionGroup] <ProtectionGroup> ] [-Async] [-Inquire] [-Tag <Object> ] [ <CommonParameters>]

Detailed 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.

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.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ChildDatasource<ProtectableObject>

Specifies a data source, such as a folder in a file system, that DPM can protect individually.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Inquire

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ProtectionGroup<ProtectionGroup>

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

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Tag<Object>

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.

Aliases

none

Required?

false

Position?

named

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.

  • ChildDatasource

Examples

Example 1: Get a child data source

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.

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

Add-DPMChildDatasource

Get-DPMDatasource

Get-DPMProtectionGroup

Remove-DPMChildDatasource