I am having an issue when using the Set-VBRBackupCopyJob command... its setting the parameters.. but also its then disabling the job... is this expected?
Am I supposed to run Enable-VBRBackupCopyJob after?
Its annoying as I would like to run the Set command when the job is running, so that the changes can be picked up on the next run. At the moment it will kill the running job (as it sets it to disabled)..
Code: Select all
$VBRComputerGFSMonthlyoptions = New-VBRComputerGFSMonthlyOptions -RetentionPeriod 12 -SelectedWeek 'First';
$VBRComputerGFSYearlyoptions = New-VBRComputerGFSYearlyOptions -RetentionPeriod 7 -SelectedMonth 'June';
$VBRComputerGFSOptions = New-VBRComputerGFSOptions -GFSMonthlyOptions $VBRComputerGFSMonthlyoptions -GFSYearlyOptions $VBRComputerGFSYearlyoptions;
Set-VBRBackupCopyJob -Job $VBRBackupCopyJob -Description "Edited via Powershell script by $currentUser at $TimeStamp" -Mode Immediate -BackupJob $VBRJob -DirectOperation -GFSOptions $VBRComputerGFSOptions -RetentionType RestoreDays -RetentionNumber 30 -AnyTime;