-
- Novice
- Posts: 9
- Liked: 2 times
- Joined: Sep 21, 2015 10:24 am
Backup copy job synchronization trigger issue
I think I have a fairly good understanding of the scheduling of backup copy job (including the semantics of the "copy every" setting). However, after hours of searching, reading and testing the behavior of the feature leaves me a bit frustrated.
Having a backup copy job configured as the second target of a backup job that runs every 4th hour, is there an "out of the box" way to have the copy job launch immediately after the backup job is finished without specifying a smaller "copy every" interval?
This since (as far as I understand):
- Having a smaller copy every/synchronization interval than the backup job interval will lead to "empty" new restore points that is equal to the previous ones since a new backup source has not been produced within the time frame of the backup copy job.
- Having the same interval for both copy job and backup job, leads to that the copy job might be triggered hours after the actual backup has been produced.
So is there an out of the box way to configured the backup copy job (which is a secondary target for the backup job) to be triggered as soon as the backup job has finished? Or am I left with setting up a powershell hack?
Having a backup copy job configured as the second target of a backup job that runs every 4th hour, is there an "out of the box" way to have the copy job launch immediately after the backup job is finished without specifying a smaller "copy every" interval?
This since (as far as I understand):
- Having a smaller copy every/synchronization interval than the backup job interval will lead to "empty" new restore points that is equal to the previous ones since a new backup source has not been produced within the time frame of the backup copy job.
- Having the same interval for both copy job and backup job, leads to that the copy job might be triggered hours after the actual backup has been produced.
So is there an out of the box way to configured the backup copy job (which is a secondary target for the backup job) to be triggered as soon as the backup job has finished? Or am I left with setting up a powershell hack?
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Backup copy job synchronization trigger issue
Hi,
Thank you.
Please check your backup and backup copy job start times. Everything should work Ok if you schedule your backup copy job to start, say, 5 minutes after backup job has started.is there an "out of the box" way to have the copy job launch immediately after the backup job is finished without specifying a smaller "copy every" interval?
No, it does not create an empty restore point if there is nothing on the source side.Having a smaller copy every/synchronization interval than the backup job interval will lead to "empty" new restore points that is equal to the previous ones since a new backup source has not been produced within the time frame of the backup copy job.
Copy job gets triggered when it finds a new RP on the source side.Having the same interval for both copy job and backup job, leads to that the copy job might be triggered hours after the actual backup has been taken
Thank you.
-
- Novice
- Posts: 9
- Liked: 2 times
- Joined: Sep 21, 2015 10:24 am
Re: Backup copy job synchronization trigger issue
Hi and thank you Pavel,
Hourly "copy every" intervals cannot be scheduled for a specific time. It is only for daily intervals.PTide wrote: Please check your backup and backup copy job start times. Everything should work Ok if you schedule your backup copy job to start, say, 5 minutes after backup job has started.
OK, I might have confused it the the empty RP when triggered it manually (?). However, successful reports are generated for each "empty" backup copy jobs.PTide wrote: No, it does not create an empty restore point if there is nothing on the source side.
Not if a backup copy job has already been issues of an older RP within the backup copy job interval.PTide wrote: Copy job gets triggered when it finds a new RP on the source side.
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Backup copy job synchronization trigger issue
Please give us more details about your backup plan. How often do you run your backup job?Hourly "copy every" intervals cannot be scheduled for a specific time. It is only for daily intervals.
That's how it supposed to work - the absence of RP on the source is not considered to be an error. Is that an issue for you?However, successful reports are generated for each "empty" backup copy jobs.
Correct. If an RP has been already copied during the interval then next RP appearing during the same interval gets postponed until the next interval starts. If multiple RPs have been created on the source, then all of them get merged into one RP during next sync interval.Not if a backup copy job has already been issues of an older RP within the backup copy job interval.
Thank you.
-
- Novice
- Posts: 9
- Liked: 2 times
- Joined: Sep 21, 2015 10:24 am
Re: Backup copy job synchronization trigger issue
Hi Pavel, and thank you.
Thank you once again.
The backup job runs every 4th hour, and the current setting of the backup copy job is every hour (since setting it to four hours will lead to delayed copy jobs).PTide wrote: Please give us more details about your backup plan. How often do you run your backup job?
I agree that it is not an error, but nor a success.. "Success 0 of 0 VMs processed" (ie. backup has already been copied by precending jobs), sounds like a contradiction, as does "success" when nothing has been read, processed and transfered (ie. no new backup in source). The issue arises when using email notification for verifying that the copy job succeeded.PTide wrote: the absence of RP on the source is not considered to be an error. Is that an issue for you?
I see that no additional RP is created for the empty backup copy jobs inside the console, but when manually browsing the repository there is crated and "empty" (?) .vib file (31 584 256 bytes), which is unfortunate.PTide wrote: No, it does not create an empty restore point if there is nothing on the source side.
Thank you once again.
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Backup copy job synchronization trigger issue
- Set backup copy job to every 4 hours and disable itThe backup job runs every 4th hour, and the current setting of the backup copy job is every hour (since setting it to four hours will lead to delayed copy jobs).
- Wait for backup job to start, wait 5 more minutes
- Enable backup copy job
That will make your backup copy job to start within 5 minutes after backup process thus taking new RP to remote site.
The approach mentioned in the beginning of this post should eliminate the issue.I agree that it is not an error, but nor a success.. "Success 0 of 0 VMs processed", sounds like a contradiction. The issue arises when using email notification for verifying that the copy job succeeded.
That's right - copy job incrementals are created even if nothing to be put inside. That is being performed to keep the backup chain consistent. So that's a normal behaviour.I see that no additional RP is created for the empty backup copy jobs inside the console, but when manually browsing the repository there is crated and "empty" (?) .vib file (31 584 256 bytes), which is unfortunate.
-
- Novice
- Posts: 9
- Liked: 2 times
- Joined: Sep 21, 2015 10:24 am
Re: Backup copy job synchronization trigger issue
Thanks once again Pavel! This could work, but it leaves two questions:PTide wrote:- Set backup copy job to every 4 hours and disable it
- Wait for backup job to start, wait 5 more minutes
- Enable backup copy job
That will make your backup copy job to start within 5 minutes after backup process thus taking new RP to remote site.
Will this it be persisted after a B&R server restart? Or do I have to “synchronize” it once again for each restart?
I belive each "copy every" iteration has a bit overhead (restart copy job, etc.). So I fear that the 5 minute offset will increase for each iteration, leaving a larger and larger offset. Is this a correct assumption?
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Backup copy job synchronization trigger issue
Unfortunately, a synchronization will be needed.Will this it be persisted after a B&R server restart? Or do I have to “synchronize” it once again for each restart?
No there will be no offset - each new interval lasts exactly the specified amount of time.I belive each "copy every" iteration has a bit overhead (restart copy job, etc.). So I fear that the 5 minute offset will increase for each iteration, leaving a larger and larger offset. Is this a correct assumption?
With all said I think that an easier approach would be to leverage a post-job script that will trigger a synchronization after the backup has finished.
Thank you.
-
- Novice
- Posts: 9
- Liked: 2 times
- Joined: Sep 21, 2015 10:24 am
Re: Backup copy job synchronization trigger issue
Yes, it lasts for the same time, but then it has to start and stop. For a one-hour interval I have registered these start times: Start time, 14:31:44, Start time 15:34:43, Start time 16:35:01. Implying an manually triggered offset would grow.PTide wrote:No there will be no offset - each new interval lasts exactly the specified amount of time.
I agree. Enabling the backup copy job after the backup job is done, and disabling backup the copy job after the backup copy job should do the trick, when the "copy every" setting is set to a lower interval.PTide wrote: With all said I think that an easier approach would be to leverage a post-job script that will trigger a synchronization after the backup has finished.
Thank you.
-
- Novice
- Posts: 9
- Liked: 2 times
- Joined: Sep 21, 2015 10:24 am
Re: Backup copy job synchronization trigger issue
For the record, this is the two one-liners I ended up using for enabling and disabling the job as described:
Code: Select all
powershell -Command "& {Add-PSSnapin VeeamPSSnapin; Get-VBRjob -name 'My copy job name' | Enable-VBRJob}"
powershell -Command "& {Add-PSSnapin VeeamPSSnapin; Get-VBRjob -name 'My copy job name' | Disable-VBRJob}"
-
- Novice
- Posts: 9
- Liked: 2 times
- Joined: Sep 21, 2015 10:24 am
Re: Backup copy job synchronization trigger issue
Unfortunately, only every second RP was copied by the backup copy job when enabling and disabling the backup copy job after the backup job, thought the script above (the backup interval continued although it should have expired according to the set interval). Ended up with running Sync-VBRBackupCopyJob just after enabling the job, and everything worked much better.
Command after the backup job (enable and run backup copy job):
Command after the backup copy job (disable itself):
Command after the backup job (enable and run backup copy job):
Code: Select all
powershell -Command "& {$n = 'My Backup Copy Job name'; Add-PSSnapin VeeamPSSnapin; Enable-VBRJob -job $n; Sync-VBRBackupCopyJob -Job $n;}"
Code: Select all
powershell -Command "& {$n = 'My Backup Copy Job name'; Add-PSSnapin VeeamPSSnapin; Disable-VBRJob -job $n;}"
Who is online
Users browsing this forum: No registered users and 71 guests