PowerShell script exchange
Post Reply
JMeixner
Veeam Legend
Posts: 6
Liked: 1 time
Joined: Apr 20, 2021 3:16 pm
Full Name: Jochen (Joe) Meixner
Contact:

Get backup file names for a plugin job session

Post by JMeixner » 1 person likes this post

Hello,
I am trying to get the names of the files that are are created by a plugin job session. If the session is completed successfully the names are not given, if the session is completed with failure the files are mostly g9ven in the log.
I can get nearly all information about these sessions as amount of data search, written, transferred. I can see in the log how many files are written. But I cannot find the names of the files written by one of these sessions....
Is there a possibility to get this information?

This is how I tried so far to get the information:

Code: Select all

$Job = Get-VBRPluginJob -name "Plugin Job Name"
$pluginsessions =[Veeam.Backup.Core.CBackupSession]::GetAllSessionsByPolicyJob($job.id) | where-object {$_.EndTime -ge (Get-Date).addhours(-24)}

$tasksess = $session[0].gettasksessions()
# this gets the amount of file written in one of the messages
$tasksess[0]..logger.GetLog().updatedrecords  | sort updatetime | select Title
# this gets several information about the data sizes, runtimes, bottlenecks
$plugsess[0].Progress
But no filenames....
Ok, I could look for the files that are written during the runtime of the session in the repository, but Veeam has this information in the database....
Talom
Enthusiast
Posts: 43
Liked: 6 times
Joined: Oct 21, 2014 7:56 am
Contact:

Re: Get backup file names for a plugin job session

Post by Talom »

Same here...
BACKUP EAGLE® Developer
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests