Hey
@matteu, just to make sure I get you right, you want to disable transaction log processing entirely or you just want the Guest Processing options to be copy only? Just not quite sure I'm getting it fully.
That is, you want this option the Transaction Logs option here to be "Perform Copy Only"?:
https://helpcenter.veeam.com/docs/backu ... ob_vss.png
If so, then you need to first get the job Objects with Get-VBRJobObject.
Objects can be a few things:
Include == Something we intend to backup
Exclude == Excluded from backup
ExcludeDisksChild == Excluded disks
There are others, but mostly you care about includes.
Once you know the object(s) you want to set it on, you will then collect that Object's VSS options with Get-VBRJobVSSOptions and pass the JobObject to the -ObjectInJob parameter and save it to a variable. (e.g., $VSSJobOptions)
Edit $VSSJobOptions as you desire; in your case you want to set the property VssSnapshotOptions.IsCopyOnly = $True
Then you will do Set-VBRJobVSSOptions and pass the $VSSJobOptions you just configured as the parameter.
An example in code:
Code: Select all
PS F:\perjobbackups\vss-test> $job = Get-VBRJob -name 'vss-test'
PS F:\perjobbackups\vss-test> $jObjs = Get-VBRJobObject -Job $jOb
PS F:\perjobbackups\vss-test> $VSSJobObject = Get-VBRJobObjectVssOptions -ObjectInJob $jObjs[2]
PS F:\perjobbackups\vss-test> $VSSJobObject.VssSnapshotOptions.IsCopyOnly = $true
PS F:\perjobbackups\vss-test> Set-VBRJobObjectVssOptions -Object $jObjs[2] -Options $VSSJobObject
Name Type ApproxSize Location
---- ---- ---------- --------
Private VMs Include 55 MB myvcenter.local...