Windows 2022
Sponsored Link

Windows Server Backup : Recover Files2022/12/23

 
Recover Files from Backups.
[1] Run PowerShell with Admin Privilege and Recover Files.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

# set backup location object
# example follows is for the case backups exist on shared folder
# for the case backups exist on local drive ⇒ -VolumePath (drive letter)
PS C:\Users\Administrator> $BackupLocation = New-WBBackupTarget -NetworkPath "\\10.0.0.102\Share01" `
-Credential (New-Object PSCredential("Serverworld", (ConvertTo-SecureString -AsPlainText "P@ssw0rd01" -Force)))

# confirm backups
PS C:\Users\Administrator> Get-WBBackupSet -BackupTarget $BackupLocation

VersionId        : 12/22/2022-05:42
BackupTime       : 12/21/2022 9:42:24 PM
BackupTarget     : \\10.0.0.102\Share01
RecoverableItems : Volumes, SystemState, Applications, Files, BareMetalRecovery
Volume           : {EFI System Partition, Local disk (C:), (Disk does not have drive letter)
                   (\\?\Volume{1fc33f07-cb61-4747-b878-7e8337269bb1}\)}
Application      : {Registry}
VssBackupOption  : VssCopyBackup
SnapshotId       : 00000000-0000-0000-0000-000000000000
BackupSetId      : 1bf82d71-92e6-420b-ac5b-255402010835

# set backupset object
PS C:\Users\Administrator> $Backups = Get-WBBackupSet -BackupTarget $BackupLocation

# run recovery
# -SourcePath (recovering source files/folders)
# -Recursive ⇒ if a folder specified for SourcePath, recover all files recursively
# -TargetPath (target Path for saving recovering files)
PS C:\Users\Administrator> Start-WBFileRecovery -BackupSet $Backups -SourcePath "C:\Users\Administrator" -Recursive -TargetPath "C:\Users\Administrator\Desktop\recovery"

Warning
Start recovery of files from C:\Users\Administrator to C:\Users\Administrator\Desktop\recovery ?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y
Recovering files from C:\Users\Administrator :
Recovering files from C:\Users\Administrator : Preparing to recover files.
Completed.

PS C:\Users\Administrator> ls C:\Users\Administrator\Desktop\recovery

    Directory: C:\Users\Administrator\Desktop\recovery


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        12/20/2022   8:10 PM                Administrator
Windows Server Backup : Recover Files (GUI)
 
On GUI configuration, set like follows.
[2] Run [Server Manager] and click [Tools] - [Windows Server Backup], next Select [Local Backup] on the left pane and right-click to open menu, then select [Recover].
[3] Select a location of Backup stored. It selects [another location] on this example.
[4] Specify Location Type. It selects [Remote shared folder] on this example.
[5] If selected [Remote shared folder] on previous section, Specify Remote Folder.
[6] Select Backup Date and Click [Next] button.
[7] Select Recovery Type. Its selects [Files and Folders] on this example.
[8] Select Items to Recover you'd like to recover files and folders.
[9] Specify Recovery Options.
[10] Click [Recover] button.
[11] After finishing recovery, Click [Close] button.
[12] That's OK ro run recovery.
Matched Content