Hello,
How to get the value for RPO monitor -> Log backup with Get-VBRBackupCopyJob
-
- Veeam Legend
- Posts: 824
- Liked: 128 times
- Joined: May 11, 2018 8:42 am
- Contact:
-
- Veeam Software
- Posts: 2015
- Liked: 671 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Get-VBRBackupCopyJob RPO logs
It's in the (Get-VBRBackupCopyJob).RpoWarningOptions. If log backup RPO monitor is not enabled, it won't show up in the property I mentioned. Thanks!
-
- Veeam Legend
- Posts: 824
- Liked: 128 times
- Joined: May 11, 2018 8:42 am
- Contact:
Re: Get-VBRBackupCopyJob RPO logs
Thanks for your answer.
I did this :
I did this :
Code: Select all
$BackupCopyJobsReq = Get-VBRBackupCopyJob
foreach ($element in $BackupCopyJobsReq)
{
$RPOValue = ($element.RpoWarningOptions | Where-Object {$_.RpoType -eq "BackupJob"}).Value
$RPOTimeUnit = ($element.RpoWarningOptions | Where-Object {$_.RpoType -eq "BackupJob"}).TimeUnit
$RPO = if ($RPOValue){
Write-Output "$RPOValue $RPOTimeUnit"
}
else {
"Disabled"
}
#RPO Logs
$RPOLogValue = ($element.RpoWarningOptions | Where-Object {$_.RpoType -eq "BackupLogJob"}).Value
$RPOLogTimeUnit = ($element.RpoWarningOptions | Where-Object {$_.RpoType -eq "BackupLogJob"}).TimeUnit
$RPOLogs = if ($RPOLogValue){
Write-Output "$RPOLogValue $RPOLogTimeUnit"
}
else {
"Disabled"
}
[pscustomobject]@{
Name = $element.name
RPOValue = $RPO
RPOLogValue = $RPOLogs
}
}
Who is online
Users browsing this forum: No registered users and 17 guests