PowerShell script exchange
Post Reply
tomascink
Lurker
Posts: 1
Liked: never
Joined: Jul 31, 2023 11:14 am
Full Name: Tomas Cink
Contact:

Upgrading Backup Chain Formats pending

Post by tomascink »

Hello, I would like to ask if there is option how to detect Backups for which "Upgrade backup chain format" was not triggered? We monitor VBR instances through powershell script so we are looking for way how to detect it through powershell. I thought that it could be cmdlet Get-VBRBackup and "IsTruePerVmContainer" variable but there are some backups for which it is 'false' and chain format was already upgraded.

Image

It is not about imported backups. It is just an example. It is mainly after upreade from VBR V11 --> V12.

Thank you.
HannesK
Product Manager
Posts: 14322
Liked: 2890 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Upgrading Backup Chain Formats pending

Post by HannesK »

Hello,
and welcome to the forums.

Your assumption is right and I found a code sniplet that converts backup chains with the IsTruePerVmContainer that you mention. If you say that the output is wrong, then I suggest to contact support and check why that happens. Please post the case number for reference.

Code: Select all

$Backups = Get-VbrBackup | Where-Object {$_.IsTruePerVmContainer -eq $False}
foreach ($Backup in $Backups)
    {
         Upgrade-VBRBackup -Backup $Backup
    }
Best regards,
Hannes
Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests