Start-WBFileRecovery

Windows Server 2012 R2 and Windows 8.1

Start-WBFileRecovery

Starts a file recovery operation.

구문

Parameter Set: Default
Start-WBFileRecovery [-BackupSet] <WBBackupSet> [-SourcePath] <String> [[-TargetPath] <String> ] [[-Option] <WBFileRecoveryOptions> ] [[-Async]] [[-NoRestoreAcl]] [[-Recursive]] [[-Force]] [ <CommonParameters>]




자세한 설명

The Start-WBFileRecovery cmdlet starts a file recovery operation. For file recovery, you must specify the backup set from which to recover the file, along with the file that you want to recover.

To browse the volumes in backup, use the Get-WBBackupVolumeBrowsePath cmdlet.

매개 변수

-Async

Indicates that Windows PowerShell® returns immediately after it starts the backup and does not display status messages.


별칭

없음

필수 여부

false

위치

7

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-BackupSet<WBBackupSet>

Specifies a backup set object that contains the backup set from which you recover files.


별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

false

-Force

Indicates that the cmdlet starts the recovery operation without prompting you for confirmation. By default, the cmdlet prompts you for confirmation before it proceeds.


별칭

없음

필수 여부

false

위치

8

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-NoRestoreAcl

If specified, then security attributes for the files are not restored after recovery.


별칭

없음

필수 여부

false

위치

7

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Option<WBFileRecoveryOptions>

Specifies an object that contains file recovery options. The options specify the action to take when a file that you recover already exists in the same location. 이 매개 변수에 허용되는 값은 다음과 같습니다.

     -- SkipIfExists: Causes Windows Server Backup to skip the existing file and continue with recovery of the next file.

     -- CreateCopyIfExists: Causes Windows Server Backup to create a copy of the existing file and not overwrite it.

     -- OverwriteIfExists: Causes Windows Server Backup to overwrite the existing file with the file from the backup.

If you do not specify this parameter, the cmdlet uses the CreateCopyIfExists option by default.


별칭

없음

필수 여부

false

위치

4

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Recursive

Indicates that Windows Server Backup recovers the files from the folders that you specify along with files in folders that are subordinate to those folders. By default, the backup operation recovers only files that reside directly under the specified folders.


별칭

없음

필수 여부

false

위치

7

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-SourcePath<String>

Specifies the file path that you recover from the backup. You can prefix the file path with a volume browse path that you get from the Get-WBBackupVolumeBrowsePath cmdlet.


별칭

없음

필수 여부

true

위치

2

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

false

-TargetPath<String>

Specifies the location where recovered files reside after the recovery. If you do not specify this parameter, the backup operation recovers files to their original locations.


별칭

없음

필수 여부

false

위치

3

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

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

입력

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

  • WBBackupSet, WBFileRecoveryOptions

    The file recovery process specifies a backup set object that contains the backup set from which you recover files. The recovery process uses file recovery options when you recover files to their original locations and the file that you recover is already present in the original location.


출력

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

  • System.String

    If you do not specify the Async parameter, the recovery operation displays status messages at periodic intervals until the recovery is complete. While the recovery operation runs you can use the Get-WBJob cmdlet to get the status of the operation. After the operation is complete, you can use the Get-WBJob -Previous 1 command to get the completed recovery status.


예제

Example 1 :Recover files to their original location

This command recovers the file at the path "C:\Dir1" from the backup set named $Backup and restores it to its original location. Because the command includes the Force parameter, the backup proceeds without confirmation prompts.


PS C:\> Start-WBFileRecovery -BackupSet $Backup -FilePathToRecover C:\Dir1 -Recursive -FileRecoveryOption CreateCopyIfExists -Force

Example 2: Recover files to a new location

This example recovers the file named C:\Dir1\File1.txt to the alternate location F:\Dir1.

The first command uses the Get-WBBackupVolumeBrowsePath cmdlet to get the volume browse path for the file that you recover. The first element of the Volume array within the backup set stored in the variable named $Backup specifies the volume from which to obtain the backup files.

The second command checks the path that you obtained from the first command for a file named "File1.txt".

The third command restores the file named "File1.txt" to the path "F:\Dir1".


PS C:\> Get-WBBackupVolumeBrowsePath -BackupSet $Backup -VolumeInBackup $Backup.Volume[0]
PS C:\> dir \\Server01\WsbMountedVolumes\WsbMountedVolumeFile46_6fc68703-1c22-11e1-89cd-806e6f6e6963\dir1\File1.txt
PS C:\> Start-WBFileRecovery -BackupSet $Backup -FilePathToRecover \\Server01\WsbMountedVolumes\WsbMountedVolumeFile46_6fc68703-1c22-11e1-89cd-806e6f6e6963\Dir1\File1.txt -RecoveryTarget F:\Dir1

관련 항목

커뮤니티 추가 항목

추가
표시: