I need to extract as many information as possible about backup jobs completed in the past.
I create the following script (copying from forums and blogs) and it looks to work:
However, if I select a given job from the Veeam B&R console and select to display the report I see many more data than in the result of my script.
Just to give an example, the earliest execution of a job reported by the result of my script is October 2016 while the data shown in the record start from July 2016.
How can I tell my scruipt to display all the available information?
Regards
marius
I think it must have to do with the fact that you're trying to catch session based on session name, not on job Id.
Retry sessions, full backup sessions, session initiated manually - all have different names not exactly matching job one. For instance, full backup session for job name "Test Job" will be named "Test Job (Full)", etc.
Try to run the following script and see whether it returns the same session as GUI does: