Code: Select all
$result = Get-VBRBackup | where {$_.JobName -eq "Backup Job 1"} | Get-VBRRestorePoint | sort CreationTime -Descending | select -First 1 | Start-VBRWindowsFileRestore
$file = $result.FirstDrive + “:\readme.txt”
Copy $file c:\
Stop-VBRWindowsFileRestore $result
C:\VeeamFLR\DBServer\Volume0, C:\VeeamFLR\DBServer\Volume1, C:\VeeamFLR\DBServer\Volume2, C:\VeeamFLR\DBServer\Volume3
Now am I supposed to know how pull out a specific value in a CSV string or is there a simpler way to do it? Currently I get around all of it by just putting "C:\VeeamFLR\DBServer\Volume3\readme.txt" but I was hoping to use the variable as it will have the true value incase it creates a DBServer(2) folder instead of the expected DBServer folder when it mounts the recovered folder structure.
Any help would be appreciated.