New-OBRecoverableItem
Creates a new OBRecoverableItem for the given path.
구문
Default (기본값)
New-OBRecoverableItem
[-OBRecoverableItem] <CBRecoverableItem>
[-RelativePath] <String>
[-IsDir] <Boolean>
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 needs to be an administrator on the protected machine.
예제
EXAMPLE 1
$sources = Get-OBRecoverableSource
$rp = Get-OBRecoverableItem $sources[0]
$new_item1 = New-OBRecoverableItem $rp[0] "resources\folder" $TRUE
$new_item2 = New-OBRecoverableItem $rp[0] "resources\folder\file.txt" $FALSE
Start-OBRecovery @($new_item1, $new_item2)
This example creates a new recovery item.
매개 변수
-IsDir
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.
매개 변수 속성
형식: | Boolean |
Default value: | None |
와일드카드 지원: | False |
DontShow: | False |
매개 변수 집합
(All)
Position: | 3 |
필수: | True |
파이프라인의 값: | True |
속성 이름별 파이프라인의 값: | False |
나머지 인수의 값: | False |
-OBRecoverableItem
This is the point in time to which the relative path will be appended to create the new recoverable item.
매개 변수 속성
형식: | CBRecoverableItem |
Default value: | None |
와일드카드 지원: | False |
DontShow: | False |
매개 변수 집합
(All)
Position: | 1 |
필수: | True |
파이프라인의 값: | True |
속성 이름별 파이프라인의 값: | False |
나머지 인수의 값: | False |
-RelativePath
This is the relative path which would be appended to the given recoverable item to create the new recoverable item.
매개 변수 속성
형식: | String |
Default value: | None |
와일드카드 지원: | False |
DontShow: | False |
매개 변수 집합
(All)
Position: | 2 |
필수: | True |
파이프라인의 값: | True |
속성 이름별 파이프라인의 값: | False |
나머지 인수의 값: | False |