Get-DPMTape
Returns tapes in the library.
Syntax
Get-DPMTape
[-DPMLibrary] <Library[]>
[<CommonParameters>]
Get-DPMTape
[-RecoveryPointLocation] <RecoverySourceLocation[]>
[<CommonParameters>]
Get-DPMTape
[-ProtectionGroup] <ProtectionGroup[]>
[<CommonParameters>]
Description
The Get-DPMTape cmdlet returns tapes in the library. In System Center - Data Protection Manager (DPM), a library refers to multi-drive tape hardware and stand-alone tape drives.
Examples
Example 1: Retrieve a list of tapes for a library
PS C:\>$DpmLibrary = Get-DPMLibrary -DPMServerName "Contoso-DPMServer"
PS C:\> Get-DPMTape -DPMLibrary $DpmLibrary
The first command uses the Get-DPMLibrary cmdlet to get the library for the server, and then stores it in the $DpmLibrary variable.
The second command uses the Get-DPMTape cmdlet to return the list of tapes on Contoso-DPMServer.
Parameters
-DPMLibrary
Specifies an array of DPM library objects that this cmdlet gets. The library objects can be multi-drive tape hardware or stand-alone tape drives.
Type: | Library[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ProtectionGroup
Specifies an array of protection groups for which this cmdlet gets tapes. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet. A protection group consists of data sources, such as volumes or shares, that have a common protection configuration and schedule.
Type: | ProtectionGroup[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RecoveryPointLocation
Specifies an array of recovery point locations for which this cmdlet gets tapes. To obtain a recovery point location object, use the Get-DPMRecoveryPointLocation cmdlet. A recovery point is a copy of a replica stored on a DPM server. You can specify multiple locations for recovery items that exist on a disk and a tape, or on multiple tapes.
Type: | RecoverySourceLocation[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
Tape