So I am not new to Powershell but I am new to Veeams Powershell and hoping someone can help me figure out what I am missing.
I have a script I am writing that builds a VM from start to finish, it's almost complete with one last thing, having it auto add VMs to jobs and set VSS options based on user inputs.
So far getting the VM into the job is easy enough but once there I may want a specific VM to not use application aware processing at all and be set to copy only but also in that same job have a VM that uses VSS and truncates logs.
I have been testing with it and it doesn't appear to be applying the settings to the job globally but I would also like to know if there is a way to get the VSS settings to apply at an object level within the job?
Example being
Code: Select all
Set-VBRJobVssOptions -Job "$backupjob" -Options $options
Code: Select all
GuestFSExcludeOptions : Veeam.Backup.Model.CGuestFSExcludeOptions
VssSnapshotOptions : Enabled: [True], IgnoreErrors: [True], IsCopyOnly: [True]
WinGuestFSIndexingOptions : Type: [None]
LinGuestFSIndexingOptions : Type: [None]
SqlBackupOptions : TransactionLogsProcessing: [TruncateOnlyOnSuccessJob], BackupLogsFrequencyMin: [15], UseDbBackupRetention: [True], RetainDays: [15], ProxyAutoSelect: [True]
OracleBackupOptions : BackupLogsEnabled: [False], BackupLogsFrequencyMin: [15], UseDbBackupRetention: [True], RetainDays: [15], ArchivedLogsTruncation: [Disabled], ArchivedLogsMaxAgeHours: [24],
ArchivedLogsMaxSizeMb: [10240], SysdbaCredsId: [00000000-0000-0000-0000-000000000000], ProxyAutoSelect: [True]
GuestScriptsOptions : Veeam.Backup.Model.CGuestScriptsOptions
ExchangeBackupOptions : TransactionLogsProcessing: [TruncateOnlyOnSuccessJob]
WinCredsId : 00000000-0000-0000-0000-000000000000
LinCredsId : 00000000-0000-0000-0000-000000000000
GuestProxyAutoDetect : True
Enabled : True
IgnoreErrors : True
AreWinCredsSet : False
AreLinCredsSet : False
GuestFSIndexingType : None
IncludedIndexingFolders : {}
ExcludedIndexingFolders : {}
LinGuestFSIndexingType : None
LinIncludedIndexingFolders : {}
LinExcludedIndexingFolders : {}
IsFirstUsage : True
m_isFirstUsage : True
But if I review app processing in the GUI it doesn't change the state of VSS under the General tab despite the output reflecting
Code: Select all
GuestFSExcludeOptions : Veeam.Backup.Model.CGuestFSExcludeOptions
VssSnapshotOptions : Enabled: [True], IgnoreErrors: [True], IsCopyOnly: [True]
WinGuestFSIndexingOptions : Type: [None]
LinGuestFSIndexingOptions : Type: [None]
SqlBackupOptions : TransactionLogsProcessing: [TruncateOnlyOnSuccessJob], BackupLogsFrequencyMin: [15], UseDbBackupRetention: [True], RetainDays: [15], ProxyAutoSelect: [True]
OracleBackupOptions : BackupLogsEnabled: [False], BackupLogsFrequencyMin: [15], UseDbBackupRetention: [True], RetainDays: [15], ArchivedLogsTruncation: [Disabled], ArchivedLogsMaxAgeHours: [24],
ArchivedLogsMaxSizeMb: [10240], SysdbaCredsId: [00000000-0000-0000-0000-000000000000], ProxyAutoSelect: [True]
GuestScriptsOptions : Veeam.Backup.Model.CGuestScriptsOptions
ExchangeBackupOptions : TransactionLogsProcessing: [TruncateOnlyOnSuccessJob]
WinCredsId : 00000000-0000-0000-0000-000000000000
LinCredsId : 00000000-0000-0000-0000-000000000000
GuestProxyAutoDetect : True
Enabled : True
IgnoreErrors : True
AreWinCredsSet : False
AreLinCredsSet : False
GuestFSIndexingType : None
IncludedIndexingFolders : {}
ExcludedIndexingFolders : {}
LinGuestFSIndexingType : None
LinIncludedIndexingFolders : {}
LinExcludedIndexingFolders : {}
IsFirstUsage : True
m_isFirstUsage : True