PowerShell script exchange
Post Reply
Jocelyn32
Novice
Posts: 7
Liked: 1 time
Joined: Mar 22, 2016 8:49 am
Contact:

Modify IncludeMask on each run with New-VBRSelectedFilesBackupOptions

Post by Jocelyn32 »

Hello,

I want to externalize the latest DUMP files with Veeam Agent Linux but I encounter an error with the application of the config. Can you help me ?

Code: Select all

$date = (get-date).AddDays(-1).ToString("yyyyMMdd")
$selectedfiles = "/data/oracle/"
$includemask = "$($date)*bmp"

$job = Get-VBRComputerBackupJob -Name oracle_srv
$filesoptions = New-VBRSelectedFilesBackupOptions -OSPlatform Linux -BackupSelectedFiles -SelectedFiles $selectedfiles -IncludeMask $includemask
Set-VBRComputerBackupJob -job $job -BackupType SelectedFiles -SelectedFilesOptions $filesoptions
My error is :

Code: Select all

Set-VBRComputerBackupJob : The specified computer backup job is invalid.
Application Aware Image processing options:
BackupObject 'oracle_srv.toto.com':
Failed to validate computer backup job. OracleProcessingOptions are not supported by computer backup job of Linux type
Au caractère Ligne:1 : 1
+ Set-VBRComputerBackupJob -job $job -BackupType SelectedFiles -Selecte ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-VBRComputerBackupJob], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Veeam.Backup.PowerShell.Cmdlets.SetVBRComputerBackupJob
The setting is possible with the graphical interface

Thank you
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Modify IncludeMask on each run with New-VBRSelectedFilesBackupOptions

Post by oleg.feoktistov »

Hi @Jocelyn32,

Just checked with QA. This behaviour is confirmed to be a bug. To be fixed in v11.

Thanks,
Oleg
Jocelyn32
Novice
Posts: 7
Liked: 1 time
Joined: Mar 22, 2016 8:49 am
Contact:

Re: Modify IncludeMask on each run with New-VBRSelectedFilesBackupOptions

Post by Jocelyn32 »

Hi Oleg,

Thank you for your reply.
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests