PowerShell script exchange
Post Reply
can
Novice
Posts: 4
Liked: never
Joined: Apr 25, 2024 8:13 am
Full Name: can bilgiç
Contact:

veeam backup job change protection group with powershell

Post by can »

Hello, I am trying to change the protection group via powershell after creating a backupjob in veeam, but there is no problem when I change it once, if I want to change it again after changing it, I get such an error, how can I solve this?

Code: Select all

$protection = Get-VBRProtectionGroup -Name test
$job2 = Get-VBRComputerBackupJob -Name "test2"
Set-VBRComputerBackupJob -Job $job2 -BackupObject $protection

Code: Select all

Set-VBRComputerBackupJob : The specified computer backup job is invalid.
Failed to validate a BackupObject with the specified name: test3. IndexIncludedOnly or IndexEverythingExceptExcluded options are not supported by Linux computer backup job of 
SelectedFiles type.
At line:5 char:1
+ Set-VBRComputerBackupJob -Job $job2 -BackupObject $protection
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-VBRComputerBackupJob], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Veeam.Backup.PowerShell.Cmdlets.SetVBRComputerBackupJob
david.domask
Veeam Software
Posts: 1334
Liked: 347 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: veeam backup job change protection group with powershell

Post by david.domask »

Hi can,

Which Veeam version are you using currently? I seem to remember there was an older issue with this cmdlet and it was resolved in one of the early v11 updates, so can you confirm if you're on v12 already? If not, please try upgrading and then see if the behavior continues. If it does, please open a Support case and let the Support Team review the issue.
David Domask | Product Management: Principal Analyst
can
Novice
Posts: 4
Liked: never
Joined: Apr 25, 2024 8:13 am
Full Name: can bilgiç
Contact:

Re: veeam backup job change protection group with powershell

Post by can »

hello I am actively using version 12.0.0.0.1420 p20230718, is there anything I can do for this version ?
david.domask
Veeam Software
Posts: 1334
Liked: 347 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: veeam backup job change protection group with powershell

Post by david.domask »

Hi can,

I would ask if you could please update to the latest version of Veeam Backup and Replication and see if the issue continues to reproduce; if it does, it's best to open a case and let the Veeam Support Team take a look at the behavior.

When you open a case, please share the case number here.
David Domask | Product Management: Principal Analyst
oleg.feoktistov
Veeam Software
Posts: 1922
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: veeam backup job change protection group with powershell

Post by oleg.feoktistov »

Hi @can,

What's your $job.IndexingOptions.IndexingMode value? Also, did you create your linux agent job via powershell?
Looks like I cannot reproduce the same issue in 12.0.0.1420, but you could try changing the existing indexing options.

Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: janbe and 16 guests