Remove-DPMDatasourceReplica

Removes an inactive replica.

Syntax

Remove-DPMDatasourceReplica [-Datasource] <Datasource> [-Disk] [-PassThru] [-Confirm] [-WhatIf]
 [<CommonParameters>]
Remove-DPMDatasourceReplica [-Datasource] <Datasource> [-Online] [-PassThru] [-Confirm] [-WhatIf]
 [<CommonParameters>]
Remove-DPMDatasourceReplica [-Datasource] <Datasource> [-PassThru] [-Tape] [-Confirm] [-WhatIf]
 [<CommonParameters>]

Description

The Remove-DPMDatasourceReplica cmdlet removes an inactive replica from disk or tape.

Examples

Example 1: Remove a data source replica

PS C:\>$PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02"
PS C:\> $PObjects = Get-DPMDatasource -ProtectionGroup $PGroup
PS C:\> Remove-DPMDatasourceReplica -Datasource $PObjects -Disk

The first command gets the protection group from the DPM server named DPMServer02, and then stores that group in the $PGroup variable.

The second command gets the data source from the protection group in $PGroup, and then stores that data source in the $PObject variable.

The last command removes the replica of the data source in $PObjects from disk.

Parameters

-Datasource

Specifies a data source object for which this cmdlet removes a replica. A data source can be a file system share or volume for the Windows operating system, Microsoft SQL Server database, Microsoft Exchange Server storage group, Microsoft SharePoint farm, Microsoft Virtual Machine, System Center 2016 - Data Protection Manager (DPM) database, or system state that is a member of a protection group.

Type:Datasource
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Disk

Indicates that the cmdlet removes the replica from disk.

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

Indicates that the data source uses online protection.

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

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

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

Indicates that the cmdlet removes the replica from tape.

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

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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