I would like to automate the copy of all "Stopped" Backup Jobs from my Veeam server to another location, about that:
Get-VBRJob | Out-String -Stream | Select-String "Stopped"; Get-Date -Format "#dddd dd/MM/yyyy" > /logs/stopped_jobs.txt
How can I take the output list in "/logs/stopped_jobs.txt" and use that for input in robocopy to match the source directories? The directories (D:/Backup/...) has the same name of the jobs in the list.
The example output of "Get-VBRJob" is it:
<Job Name> <Type> <State> <Latest result> <Notes>