PowerShell script exchange
Post Reply
ratkinsonuk
Expert
Posts: 102
Liked: 14 times
Joined: Dec 10, 2018 10:59 am
Full Name: Robert Atkinson
Contact:

How to Select Upgradable Repositories

Post by ratkinsonuk »

Anyone know where the upgradable flag is stored for the Upgrade-VBRBackup cmdlet? Basically, I'm trying to work out which repositories still need upgrading to the new v12 format.

I've listed out the Get-VBRRepository object, but the only field showing is UsePerVMBackupFiles. I can't see the equivalent 'UseIndividualMetadataFiles' anywhere.

Cheers, Rob.
Mildur
Product Manager
Posts: 8735
Liked: 2296 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: How to Select Upgradable Repositories

Post by Mildur »

Hi Robert

You don't upgrade repositories, you upgrade backups.
So you should use Get-VBRBackup to determine which backups were not upgraded yet.

If I remember correctly, you can use property IsTruePerVmContainer to check for non-upgraded backup jobs.

Best,
Fabian
Product Management Analyst @ Veeam Software
ratkinsonuk
Expert
Posts: 102
Liked: 14 times
Joined: Dec 10, 2018 10:59 am
Full Name: Robert Atkinson
Contact:

Re: How to Select Upgradable Repositories

Post by ratkinsonuk »

Ah, the cmdlet accepts a repository.

Code: Select all

Upgrade-VBRBackup [-BackupRepository <CBackupRepository>] [-Force] [-RunAsync]  [<CommonParameters>]
No worries - I'll try upgrading by backup instead.
Mildur
Product Manager
Posts: 8735
Liked: 2296 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: How to Select Upgradable Repositories

Post by Mildur »

It accepts either repositories or backups.

Code: Select all

Upgrade-VBRBackup [-Backup <CBackup[]>] [-Force] [-RunAsync]  [<CommonParameters>]
You can run it against an entire repository. Already upgraded backups won't be upgraded again. They shouldn't be touched.

Best,
Fabian
Product Management Analyst @ Veeam Software
ratkinsonuk
Expert
Posts: 102
Liked: 14 times
Joined: Dec 10, 2018 10:59 am
Full Name: Robert Atkinson
Contact:

Re: How to Select Upgradable Repositories

Post by ratkinsonuk » 1 person likes this post

Just noticed the JobType also seems to change after the upgrade, so another way to select outstanding backups...

Code: Select all

get-vbrbackup -name *esk*_backup | select jobname,jobtype

JobName                                   JobType
-------                                   -------
PROD_DAILY_REMOTEDESKTOP_BACKUP PerVmParentBackup
PROD_DAILY_REMOTEDESKTOP_BACKUP PerVmParentBackup
DEV_WEEKLY_ESK_BACKUP           PerVmParentBackup
PROD_DAILY_ESK_BACKUP                      Backup
DEV_WEEKLY_ESK_BACKUP           PerVmParentBackup
PROD_DAILY_ESK_BACKUP           PerVmParentBackup
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests