Get-OBRecoverableItem

Get-OBRecoverableItem

Gets the array of OBRecoverableItem objects associated with the server.

구문

Parameter Set: RecoveryBrowse
Get-OBRecoverableItem [-ParentItem] <CBRecoverableItem> [[-PagingContext] <CBPagingContext> ] [ <CommonParameters>]

Parameter Set: RecoverySearch
Get-OBRecoverableItem [[-SearchString] <String> ] [-Location] <String> [-RecoveryPoint] <CBRecoverableItem> [[-PagingContext] <CBPagingContext> ] [ <CommonParameters>]

Parameter Set: RecoverySource
Get-OBRecoverableItem [-Source] <CBRecoverableSource> [ <CommonParameters>]

자세한 설명

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

매개 변수

-Location<String>

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

별칭

없음

필수 여부

true

위치

3

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-PagingContext<CBPagingContext>

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

별칭

없음

필수 여부

false

위치

5

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

false

-ParentItem<CBRecoverableItem>

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

별칭

없음

필수 여부

true

위치

2

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

false

-RecoveryPoint<CBRecoverableItem>

Specifies the RecoveryPoint to get the OBRecoverableItem[] object.

별칭

없음

필수 여부

true

위치

4

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

false

-SearchString<String>

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

별칭

없음

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Source<CBRecoverableSource>

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

별칭

없음

필수 여부

true

위치

2

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • None

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.Internal.CloudBackup.Commands.OBRecoverableItem[]

예제

EXAMPLE 1

This example returns a recoverable item from source.

PS C:\> Get-OBRecoverableSource | Where-Object –FilterScript {$_.FriendlyName -like "C*"} | Get-OBRecoverableItemPS C:\> For($i = 0; $i -Lt $sources.Length; $i++) { Get-OBRecoverableItem –Source $sources[$i] }

EXAMPLE 2

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

PS C:\> $parents = Get-OBRecoverableSource | Where-Object –FilterScript {$_.FriendlyName -like "C*"} | Get-OBRecoverableItemPS C:\> Get-OBRecoverableItem -SearchString stringToSearch* -Location R:\ -RecoveryPoint $parents[0]

EXAMPLE 3

This example returns a recoverable item based on browse.

PS C:\> $pc = New-OBPagingContextPS C:\>$parents = Get-OBRecoverableSource | Where-Object –FilterScript {$_.FriendlyName -like "C*"} | Get-OBRecoverableItemPS C:\> New-OBPagingContext | Get-OBRecoverableItem -ParentItem $parents[0] -Type FileOnly

관련 항목

Get-OBRecoverableSource

New-OBPagingContext

Where-Object