PowerShell script exchange
Post Reply
Sankar
Lurker
Posts: 2
Liked: never
Joined: Jul 02, 2021 3:17 pm
Full Name: Sankar Pillai
Contact:

Poweshell script for backup report at client level

Post by Sankar »

Hi
I'm not a Powershell guy, I am looking for a powershell scrip for Backup report, The cmdlet “ Get-VBRComputerBackupJobSession “ which we used only returns the report at the backup job level not on the cline backup status.
If on Backup Job contain multiple client and how to get the backup status for individual client level backup report.
i have added my backup clients to the protection group. From Veeam one we are getting a detailed report on backup status which give the report at client level.
is there any PowerShell script available to get such report from VBR.

Thanks
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Poweshell script for backup report at client level

Post by oleg.feoktistov »

Hi Sankar,

If I understood your aim correctly, Get-VBRTaskSession cmdlet is what you are looking for. Example:

Code: Select all

$sessions = Get-VBRComputerBackupJobSession
Get-VBRTaskSession -Session $sessions[0]
Thanks,
Oleg
Suryanarayanan
Influencer
Posts: 14
Liked: 3 times
Joined: Jul 09, 2021 12:42 pm
Full Name: Suryanarayanan
Location: Bangalore India
Contact:

Re: Poweshell script for backup report at client level

Post by Suryanarayanan » 1 person likes this post

Hi Sankar,

It can be achieved with two commands

Code: Select all

#get jobs which run for last 24 hours
$vbrsessions = Get-VBRBackupSession | Where-Object {$_.JobType -eq "Backup" -and $_.EndTime -ge (Get-Date).addhours(-24)}

#get each client from the job
foreach ($session in $vbrsessions) {$session.gettasksessions()| Select Name,Jobname, Status }
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests