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
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Jul 02, 2021 3:17 pm
- Full Name: Sankar Pillai
- Contact:
-
- Veeam Software
- Posts: 2021
- Liked: 673 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Poweshell script for backup report at client level
Hi Sankar,
If I understood your aim correctly, Get-VBRTaskSession cmdlet is what you are looking for. Example:
Thanks,
Oleg
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]
Oleg
-
- Influencer
- Posts: 21
- 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
Hi Sankar,
It can be achieved with two commands
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 }
Who is online
Users browsing this forum: No registered users and 13 guests