Restoring files
Once backed up, individual files or folders can be recovered as part of an operation recovery. If a file is deleted or overwritten, it can be restored from a prior backup to recover a file or roll back changes to an earlier version of a file.
In this recipe, we will perform recoveries of individual files and folders.
Getting ready
For this recipe, we will be using a server configured for backups similar to the Configuring backup policies recipe that has successfully completed at least one backup.
How to do it...
Identify the backup set.
Get-WBBackupSet
When executed, the available backup sets will be displayed, as shown in the following screenshot:
$myBackup = Get-WBBackupSet | ` Where-Object VersionId -eq 03/03/2013-19:31
Perform a single file recovery.
Start-WBFileRecovery -BackupSet $myBackup ` -SourcePath c:\temp\perfcounter.csv
Recover a folder.
Start-WBFileRecovery -BackupSet $myBackup ` -SourcePath c:\inetpub\ -Recursive -TargetPath c:\
When executed, the recovery process will...