Create a support case (01857778), they told me to post here because I was scripting the job run. This seems like an actual issue with the backup copy job interval timer not working properly, like it's not being correctly accounted for when the backup copy job is executed from PowerShell. Everything was working great with a similar script (which I had built with suggestions from other posts on this forum) before I had reworked my jobs, so I could have mis-configured something. Anyhow, original support request is below (with some added clarifying text):
I've recently reworked my backup and backup copy jobs, and have 4 backup copy jobs that are set to copy every 7 days so I can perform GFS retention on our primary vault. To do this correctly, I have a Windows scheduled task that executes every day, which could execute 1 of the 4 backup copy jobs any given day throughout the week.
Here's the script:
This script works great, but I'm finding that all 4 backup copy jobs are all executing on Tuesday in addition to the days I specify in the script. Before I reworked the jobs, the 7 day copy interval would be reset based on when the script executed, so all the jobs were properly staggered. Now they're staggered and all executing on Tuesday on top of that, so the calls from PowerShell don't seem to be resetting the timer interval.Code: Select all
Add-PSSnapin VeeamPSSnapin $Today = (get-date).DayOfWeek.ToString().ToLower() Switch ($Today) { "monday" { Sync-VBRBackupCopyJob -Job (Get-VBRJob -Name "Daily_VMs_M-F_GFS_Vault1") } "wednesday" { Sync-VBRBackupCopyJob -Job (Get-VBRJob -Name "Daily_TFS_M-F_GFS_Vault1") } "saturday" { Sync-VBRBackupCopyJob -Job (Get-VBRJob -Name "Weekly_TFS_Sat_GFS_Vault1") } "sunday" { Sync-VBRBackupCopyJob -Job (Get-VBRJob -Name "Weekly_VMs_Sun_GFS_Vault1") } }
Can I get someone to verify that my jobs are all configured correctly?
Thank you,
Dan