Export (0) Print
Expand All

New-OBRecoverableItem

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

New-OBRecoverableItem

Creates a new OBRecoverableItem for the given path.

Syntax

Parameter Set: Default
New-OBRecoverableItem [-OBRecoverableItem] <CBRecoverableItem> [-RelativePath] <String> [-IsDir] <Boolean> [ <CommonParameters>]




Detailed Description

The New-OBRecoverableItem cmdlet creates a new OBRecoverable item with a given relative path. This file path would be used to recover the file item from a recovery point.

To use Microsoft Azure Backup cmdlets, the user must be a member of the Administrators group or Backup Operators group.

Parameters

-IsDir<Boolean>

Specify if the relative path is a directory through the use of the Boolean value TRUE or a file by specifying FALSE. This parameter is mandatory.


Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-OBRecoverableItem<CBRecoverableItem>

This is the point in time to which the relative path will be appended to create the new recoverable item.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-RelativePath<String>

This is the relative path which would be appended to the given recoverable item to create the new recoverable item.


Aliases

none

Required?

true

Position?

2

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.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.Internal.CloudBackup.Commands.OBRecoverableItem

Examples

EXAMPLE 1

This example creates a new recovery item.


PS C:\> $sources = Get-OBRecoverableSource
PS C:\> $rp = Get-OBRecoverableItem $sources[0]
PS C:\> $new_item1 = New-OBRecoverableItem $rp[0] "resources\folder" $TRUE
PS C:\> $new_item2 = New-OBRecoverableItem $rp[0] "resources\folder\file.txt" $FALSE
PS C:\> Start-OBRecovery @($new_item1, $new_item2)

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft