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.

别名

none

是否必需?

true

在哪里?

3

默认值

none

是否接受管道输入?

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.

别名

none

是否必需?

false

在哪里?

5

默认值

none

是否接受管道输入?

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.

别名

none

是否必需?

true

在哪里?

2

默认值

none

是否接受管道输入?

True (ByValue)

是否接受通配符?

false

-RecoveryPoint<CBRecoverableItem>

Specifies the RecoveryPoint to get the OBRecoverableItem[] object.

别名

none

是否必需?

true

在哪里?

4

默认值

none

是否接受管道输入?

True (ByValue)

是否接受通配符?

false

-SearchString<String>

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

别名

none

是否必需?

false

在哪里?

2

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-Source<CBRecoverableSource>

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

别名

none

是否必需?

true

在哪里?

2

默认值

none

是否接受管道输入?

True (ByValue)

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持常见的参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 TechNet 上的 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