- Posts: 37
- Liked: 2 times
- Joined: Oct 30, 2009 2:43 am
- Full Name: Felix Buenemann
I have setup a post backup job, to only occur on Sundays, with the intention of this job only running after the sunday backup job, to copy the main .vbk to an USB drive.
Now the problem is, that for checking wether to run post backup job, Veeam uses the Backups ending time, not the starting time.
So, because my Saturday backup run ends on Sunday, while the Sunday Backup run starts and ends on Sunday, the post job script gets run twice and causes all kinds of havoc, eg. the script run for the backup started on Saturday still runs, when the Sunday backup starts and because it locks the vbk during copy, the Sunday backup jobs fail, cause they can't get exclusive access to the vbk for writing.
Has this behaviour changed in 5.0 or is there a registry key or sth. to change this?
Otherwise it seems I'll have to add some logic to my backup script, to avoid the double runs.
- SVP, Product Management
- Posts: 28160
- Liked: 4971 times
- Joined: Jan 01, 2006 1:01 am
- Location: Baar, Switzerland
- Product Manager
- Posts: 24840
- Liked: 2085 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Veeam ProPartner
- Posts: 2
- Liked: never
- Joined: Dec 14, 2011 6:28 pm
I'm having a problem such that the post job command is being skipped, according to the logs (BackupJob_,<job name>.log)
The jobs are set to incremental, with an active full backup on Mondays. It is desired to back up the Monday fulls to tape using Backup Exec, so a post job command has been set on the jobs to do that. The post job command frequency is set to selected days, and only Monday is specified.
When I test by running the script manually or by creating a similar backup job with the post job command, all works as expected. However, it is not running at the end of the regularly scheduled backup jobs.
I reviewed the VBR BackupJob* logs for additional information...
At the beginning of each job run, there is a log entry that starts out "Job Options" and in that log entry I see "Post command: ["C:\scripts\VbrPostJob.bat" Final Verification]", which tells me that VBR knows there is a post job command on that job.
Toward the end of the job run, there is always an entry stating "Job operation 'Running post job command'". In the log for the test job, the very next line is "Executing custom command '"C:\scripts\VbrPostJob.bat"', arguments...". However, in the logs for the regular jobs, the very next line is "Skip custom command execution. Job run 0 of 0.".
My question... Why is Veeam Backup & Replication skipping custom command execution?
The post job activity is set to run only on Mondays. However, those full backups that the jobs perform on those days take much longer than my test job, and they don't actually finish until Tuesday morning. So, my current theory is that VBR decides not to run the post job command since it is no longer Monday when the job gets to that point in the process.
Can anyone tell me whether or not that is how the product actually works?
I can't simply change the post job command day to be Tuesday since there are incremental jobs that run on Tuesday evening and some complete before midnight so those most recent backups (incremental VIB files) would be sent to tape rather than the full VBK files from the Monday run. To work around that I suppose the script could be enhanced to abort if it sees that the selected file ends in .vib, but I'd rather not complicate it any further. If the post job command is set to run on a day or days of the week, I believe VBR should base that on the start day of the job rather than the finish day. Just wondering if that's how it works or not, and what the recommendations are.
VBR version 184.108.40.206
- Veeam Software
- Posts: 20033
- Liked: 1869 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson