Get-DPMTape
Get-DPMTape
Returns a list of tapes in the library.
Syntax
Parameter Set: Library
Get-DPMTape [-DPMLibrary] <Library[]> [ <CommonParameters>]
Parameter Set: ProtectionGroup
Get-DPMTape [-ProtectionGroup] <ProtectionGroup[]> [ <CommonParameters>]
Parameter Set: RecoverySourceLocation
Get-DPMTape [-RecoveryPointLocation] <RecoverySourceLocation[]> [ <CommonParameters>]
Detailed Description
The Get-DPMTape cmdlet returns a list of tapes in the library. In System Center 2012 – Data Protection Manager (DPM), a library refers to multi-drive tape hardware and standalone tape drives.
Parameters
-DPMLibrary<Library[]>
Specifies an array of DPM library objects. The library objects refer to multi-drive tape hardware, as well as standalone tape drives.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-ProtectionGroup<ProtectionGroup[]>
Specifies the name of a protection group. A protection group consists of data sources, such as volumes or shares, with a common protection configuration and schedule.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-RecoveryPointLocation<RecoverySourceLocation[]>
Specifies an array of recovery points. 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.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
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.
- Tape
Notes
- For more information, type "
Get-Help Get-DPMTape -detailed
".
Examples
Example 1: Retrieve a list of tapes for a library
This example retrieves a list of tapes for a library in DPM.
The first command uses the Get-DPMLibrary cmdlet to retrieve the library for the server, and stores the result in the $DPMLib variable.
The second command uses the Get-DPMTape cmdlet to return the list of tapes on Contoso-DPMServer.
PS C:\> $DPMLib = Get-DPMLibrary -DPMServerName "Contoso-DPMServer"
PS C:\> Get-DPMTape -DPMLibrary $DPMLib