PowerShell script exchange
Post Reply
volkanvk
Influencer
Posts: 12
Liked: never
Joined: Jun 21, 2021 6:27 am
Full Name: Volkan von Klass
Contact:

Trying to modify the exclude mask on a unix/AIX agent job

Post by volkanvk »

Hi

I trying to modify the exclude files on an existing Unix/AIX agent job without success, can anyone help me what i'm doing wrong?

My Test Script is:

Code: Select all

$job = Get-VBRComputerBackupJob -Name "MyAIX_TestJob"
$objects = $job.BackupObject
$scope = New-VBRSelectedFilesBackupOptions -OSPlatform Unix -BackupSelectedFiles -SelectedFiles "/" -ExcludeMask "/folder01/temp,/folder02/database"
Set-VBRComputerBackupJob -job $job -BackupObject $objects -BackupType SelectedFiles -SelectedFilesOptions $scope

My Error Message is:

Code: Select all

Set-VBRComputerBackupJob : The specified computer backup job is invalid.
Application Aware Image processing options:
BackupObject 'aixserver01':
Failed to validate computer backup job. The specified application processing options are not compatible with Unix computer backup job.
At line:1 char:1
+ Set-VBRComputerBackupJob -job $job -BackupObject $objects -BackupType ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-VBRComputerBackupJob], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Veeam.Backup.PowerShell.Cmdlets.SetVBRComputerBackupJob
Thank you in advance for any help :D
Volkan
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Trying to modify the exclude mask on a unix/AIX agent job

Post by oleg.feoktistov »

Hi Volkan,

I assume for your unix exclude mask you meant an array of two elements. If that's the case, the correct syntax to pass it would be this:

Code: Select all

-ExcludeMask @("/folder01/temp", "/folder02/database")
Thanks,
Oleg
volkanvk
Influencer
Posts: 12
Liked: never
Joined: Jun 21, 2021 6:27 am
Full Name: Volkan von Klass
Contact:

Re: Trying to modify the exclude mask on a unix/AIX agent job

Post by volkanvk »

Hi Oleg

Yes, but i got the same error message if i try to change the exclude mask. Can you tell me if my command is wrong or whats wrong with is?


Code: Select all

PS C:\Users\ua-vvo01> $job = Get-VBRComputerBackupJob -Name "MyAIX_TestJob"
PS C:\Users\ua-vvo01> $objects = $job.BackupObject
PS C:\Users\ua-vvo01> $scope = New-VBRSelectedFilesBackupOptions -OSPlatform Unix -BackupSelectedFiles -SelectedFiles "/" -ExcludeMask @("/folder01/temp", "/folder02/database")
PS C:\Users\ua-vvo01> Set-VBRComputerBackupJob -job $job -BackupObject $objects -BackupType SelectedFiles -SelectedFilesOptions $scope
Set-VBRComputerBackupJob : The specified computer backup job is invalid.
Application Aware Image processing options:
BackupObject 'aixserver01':
Failed to validate computer backup job. The specified application processing options are not compatible with Unix computer backup job.
At line:1 char:1
+ Set-VBRComputerBackupJob -job $job -BackupObject $objects -BackupType ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-VBRComputerBackupJob], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Veeam.Backup.PowerShell.Cmdlets.SetVBRComputerBackupJob

PS C:\Users\ua-vvo01>
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Trying to modify the exclude mask on a unix/AIX agent job

Post by oleg.feoktistov »

Hi Volkan,

Turns out, apart from exclusion mask array syntax, nothing wrong with your command. It simply throws the same exception always if backup object is of unix type, even if you don't pass anything except the job object:

Code: Select all

PS C:\Windows\system32> Set-VBRComputerBackupJob -Job $job
Set-VBRComputerBackupJob : The specified computer backup job is invalid.
Application Aware Image processing options:
BackupObject 'solaris':
Failed to validate computer backup job. The specified application processing options are not compatible with Unix computer 
backup job.
At line:1 char:1
+ Set-VBRComputerBackupJob -Job $job
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-VBRComputerBackupJob], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Veeam.Backup.PowerShell.Cmdlets.SetVBRComputerBackupJob
Discussed it with QA and confirmed as a bug. The fix is scheduled for vNext. Thank you for noticing it!

Best regards,
Oleg
volkanvk
Influencer
Posts: 12
Liked: never
Joined: Jun 21, 2021 6:27 am
Full Name: Volkan von Klass
Contact:

Re: Trying to modify the exclude mask on a unix/AIX agent job

Post by volkanvk »

Thank you Oleg for the feedback, then i can close my ticket 😞

What is vNext, Release v12 and AIX Agent V4?
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Trying to modify the exclude mask on a unix/AIX agent job

Post by oleg.feoktistov »

Yes, correct. Thanks!
volkanvk
Influencer
Posts: 12
Liked: never
Joined: Jun 21, 2021 6:27 am
Full Name: Volkan von Klass
Contact:

Re: Trying to modify the exclude mask on a unix/AIX agent job

Post by volkanvk »

@Oleg
Release Date? :)
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Trying to modify the exclude mask on a unix/AIX agent job

Post by oleg.feoktistov » 1 person likes this post

Can't advise on precise ETA, but it is not so far ahead. VeeamON is the next week, by the way :wink:
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests