Get-OBRecoverableItem

Gets the array of OBRecoverableItem objects associated with the server.

Syntax

Get-OBRecoverableItem
   [[-SearchString] <String>]
   [-Location] <String>
   [-RecoveryPoint] <CBRecoverableItem>
   [[-PagingContext] <CBPagingContext>]
Get-OBRecoverableItem
   [-ParentItem] <CBRecoverableItem>
   [[-PagingContext] <CBPagingContext>]
Get-OBRecoverableItem
   [-Source] <CBRecoverableSource>

Description

The Get-OBRecoverableItem cmdlet gets the list of OBRecoverableItem[] objects associated with the specified mob_name_1 server (OBServer object). The OBRecoverableItem[] objects define what items will be recovered from the list of backup items.

ps_mob_user_group_remark

Examples

EXAMPLE 1

PS C:\>Get-OBRecoverableSource | Where-Object -FilterScript {$_.FriendlyName -like "C*"} | Get-OBRecoverableItem



PS C:\>For($i = 0; $i -Lt $sources.Length; $i++) 
{ 
Get-OBRecoverableItem -Source $sources[$i] 
}

This example returns a recoverable item from source.

EXAMPLE 2

PS C:\>$parents = Get-OBRecoverableSource | Where-Object -FilterScript {$_.FriendlyName -like "C*"} | Get-OBRecoverableItem



PS C:\>Get-OBRecoverableItem -SearchString stringToSearch* -Location R:\ -RecoveryPoint $parents[0]

This example returns a recoverable item based on a search criteria.

EXAMPLE 3

PS C:\>$pc = New-OBPagingContext



PS C:\>$parents = Get-OBRecoverableSource | Where-Object -FilterScript {$_.FriendlyName -like "C*"} | Get-OBRecoverableItem



PS C:\>New-OBPagingContext | Get-OBRecoverableItem -ParentItem $parents[0] -Type FileOnly

This example returns a recoverable item based on browse.

Required Parameters

-Location

Specifies the path of the root folder to start searching the OBRecoverableItem[] object.

Type:String
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ParentItem

Specifies the parent OBRecoverableItem[] object from which to obtain the list of one or more child OBRecoverableItem[] objects as part of Recovery.

Type:CBRecoverableItem
Position:2
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-RecoveryPoint

Specifies the RecoveryPoint to get the OBRecoverableItem[] object.

Type:CBRecoverableItem
Position:4
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Source

Lists all root level OBRecoverableItem[] objects of the specified OBRecoverableSource object.

Type:CBRecoverableSource
Position:2
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-PagingContext

Specifies the OBPagingContext object which contains pagination options to retrieve the OBRecoverableItem[] object as part of search, browse, or search and browse.

Type:CBPagingContext
Position:3
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-SearchString

Specifies the file name or pattern to be matched, while searching through the OBRecoverableItem[] objects.

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBRecoverableItem[]