Windows 2025
Sponsored Link

Windows Server Backup : Recover Files2024/12/27

 

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/27/2024-22:29
BackupTime       : 12/27/2024 2:29:14 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{4c838546-6b3e-4d3f-9f53-c19e65ebd272}\)}
Application      : {Registry}
VssBackupOption  : VssCopyBackup
SnapshotId       : 00000000-0000-0000-0000-000000000000
BackupSetId      : d03bfa28-bb61-4206-acae-68899eb246bf

# 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> mkdir C:\Users\Administrator\Desktop\recovery
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 :
Completed.

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

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


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        12/26/2024   9:06 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