PowerShell script exchange
Post Reply
MaxKozlov
Influencer
Posts: 19
Liked: 5 times
Joined: Oct 26, 2017 12:52 pm
Full Name: Max Kozlov
Contact:

What is the right way to check backup health from powershell ?

Post by MaxKozlov »

If backup checking enabled in job it start job with long checking and do backup after it done.
What I want - I want to do Health check after backup to stay in backup window

I try to use Start-VBRBackupHealthCheck with no success

I have VBR-managed agents protected group
I run backup job and get backup
Then I run agents copy job and get another backup
Then I try to run Start-VBRBackupHealthCheck and it fails if copy job still enabled with 'Failed to start job [Backup Copy Agents] Error: Another job process already in progress.
'
Or if I disable job It success in seconds with no checking at all

my code:

Code: Select all

$j = Get-VBRJob | ? name -match 'Backup Copy Agents'
$b = $j.GetLastBackup()
Start-VBRBackupHealthCheck -Backup $b
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: What is the right way to check backup health from powershell ?

Post by veremin »

It's a system cmdlet that is not applicable to the situation mentioned. Currently, there is no way to run Health Check on demand. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests