New-OBRecoverableItem
New-OBRecoverableItem
Creates a new OBRecoverableItem for the given path.
구문
Parameter Set: Default
New-OBRecoverableItem [-OBRecoverableItem] <CBRecoverableItem> [-RelativePath] <String> [-IsDir] <Boolean> [ <CommonParameters>]
자세한 설명
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.
매개 변수
-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.
별칭 |
none |
필수 여부 |
true |
위치 |
3 |
기본값 |
none |
파이프라인 입력 허용 여부 |
True (ByValue) |
와일드카드 문자 허용 여부 |
false |
-OBRecoverableItem<CBRecoverableItem>
This is the point in time to which the relative path will be appended to create the new recoverable item.
별칭 |
none |
필수 여부 |
true |
위치 |
1 |
기본값 |
none |
파이프라인 입력 허용 여부 |
True (ByValue) |
와일드카드 문자 허용 여부 |
false |
-RelativePath<String>
This is the relative path which would be appended to the given recoverable item to create the new recoverable item.
별칭 |
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 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)