Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 9935

PowerShell • Re: Need script for fetching last 24 hours surebackup status

$
0
0
Hi Surya,

https://helpcenter.veeam.com/docs/backu ... ml?ver=120
https://helpcenter.veeam.com/docs/backu ... ml?ver=120

Use the cmdlets Get-VBRSureBackupSession to get the job sessions, and you can pass the result of Get-VBRSureBackupSession to Get-VBRSureBackupTaskSession for further details for each workload processed by the SureBackup Job.

To get last 24 hours, add a piped section to Where-Object like below:

$date = Get-Date
$sbSess = Get-VBRSureBackupSession | Where-Object {$_.CreationTime -ge $date.AddDays(-1)} | Sort -Property CreationTime -Descending

This will have a sorted array $sbSess with all the SureBackup job sessions in descending order and return every Surebackup Job session for the last 24 hours (from time of script execution).

Statistics: Posted by david.domask — May 21, 2025 1:12 pm



Viewing all articles
Browse latest Browse all 9935

Latest Images

Trending Articles



Latest Images