Chain SureBackup Jobs

VMware specific discussions

Chain SureBackup Jobs

Veeam Logoby lobo519 » Tue Mar 19, 2013 4:28 pm

I have a small test ESXi host that I use as my virtual lab for my SureBackup jobs. I can't start all the VM's I want to test at one time and I would like to use application groups. I was planning on creating multiple Surebackup jobs for each application group and then chain them together so they would complete one after another.

To my suprise, unlike backup and replication jobs, the schedule start option 'After this job' is not available.

If I am doing something incorrectly please let me know but I think this would be a great enhancement.

Another thought would be to be able to add multiple application groups within a single job and add the option 'process simultaneously up to # application groups'
lobo519
Expert
 
Posts: 292
Liked: 34 times
Joined: Wed Sep 29, 2010 3:37 pm

Re: Chain SureBackup Jobs

Veeam Logoby foggy » Wed Mar 20, 2013 7:25 am

If I understand your case correctly, you can use linked backup jobs instead of application groups and specify the maximum number of VMs that can be started at the same time (the Process simultaneously up to … VMs parameter at the Backup Jobs step of the SureBackup job settings). VMs from the linked job will be started X at a time. For example, by default it is set to start 3 VMs at a time and Veeam B&R creates three streams to run each VM in. After a VM is verified and powered off, the next on is started in the same stream.
foggy
Veeam Software
 
Posts: 14743
Liked: 1081 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Chain SureBackup Jobs

Veeam Logoby v.Eremin » Wed Mar 20, 2013 2:21 pm

Additionally, you might want to implement PowerShell script which would be run via Windows Scheduler and which would firstly check status of the first SureBackup job and based on the returned result would trigger the subsequent SB job.

The following script might be taken as a rough example:

Code: Select all
Add-PSSnapin VeeamPSSnapin
$firstjob = Get-VSBJob -name "Name of your first job"
$secondjob = Get-VSBJob -name " Name of your first job "
If($firstjob.GetLastState() -ne "Working") {Start-VSBJob $secondjob}
Else
{
do
{
Start-sleep -s 900
$status = $firstjob.GetLastState()
}while ($status -eq "Working")
Start-VSBJob $secondjob
}

In general, this script firstly checks first job status and if the status isn’t equal to “Working” it starts second job.

Otherwise, it keeps checking the status with a specified delay (in the above provided example the delay is 15 minutes = 900 seconds) and when the first job finally stops, it initiates the start of the second one.

Hope this helps.
Thanks.
v.Eremin
Veeam Software
 
Posts: 13279
Liked: 969 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Chain SureBackup Jobs

Veeam Logoby lobo519 » Wed Mar 20, 2013 4:21 pm

This might do the job.

thanks!
lobo519
Expert
 
Posts: 292
Liked: 34 times
Joined: Wed Sep 29, 2010 3:37 pm

[MERGED] Chaining SureBackup jobs with Powershell

Veeam Logoby cstemaly » Fri May 10, 2013 2:11 pm

I haven't tried this yet, so please let me know if it "just works" in the way that I want.

I have several SureBackup jobs, and I want them to run one after the other on Sunday (running 6.5 with newest patches).

I know I can call jobs like so:

get-vsbjob -name "Weekly-1" | start-vsbjob
get-vsbjob -name "Weekly-2" | start-vsbjob
get-vsbjob -name "Weekly-3" | start-vsbjob

What I need to know is whether the powershell script will wait for Veeam to finish vsbjob Weekly-1 BEFORE it starts the job called by the next line. I have 8 of these, and there's no way the system could handle all of them at once.

Thanks in advance.
cstemaly
Enthusiast
 
Posts: 50
Liked: 6 times
Joined: Fri Aug 17, 2012 12:31 pm

Re: Chain SureBackup Jobs

Veeam Logoby foggy » Fri May 10, 2013 10:43 pm

In addition to the above, there is a chance that this functionality will be included in v7 as a UI option. Thanks.
foggy
Veeam Software
 
Posts: 14743
Liked: 1081 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Chain SureBackup Jobs

Veeam Logoby v.Eremin » Sat May 11, 2013 4:33 pm

I need to know is whether the powershell script will wait for Veeam to finish vsbjob Weekly-1 BEFORE it starts the job called by the next line

You’ve been merged to the existing discussion, so take a look at the script provided above.

The bottom line is that you need to implement auditorial part of the script that within specified interval will check status of corresponding VSB job, starting the next one, only if the first is already finished.

Hope this helps.
Thanks.
v.Eremin
Veeam Software
 
Posts: 13279
Liked: 969 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] Chain SureBackup jobs?

Veeam Logoby haslund » Wed Jan 28, 2015 12:31 pm

Hello,

I have been forced to setup multiple Virtual Labs due to the 10 NIC limitation from VMware.
It seems it is not possible to daisy chain SureBackup jobs, is this correct?
If yes, would you please consider making this possible?
Rasmus Haslund
Principal Technologist, Global Education Services @ Veeam Software
Veeam Certified Architect #1 | Veeam Certified Trainer #4 [v7,v8,v9] | Veeam Certified Trainer Mentor #1
Twitter: @haslund
Blog: www.perfectcloud.org
haslund
Veeam Software
 
Posts: 270
Liked: 50 times
Joined: Thu Feb 16, 2012 7:35 am
Location: Denmark
Full Name: Rasmus Haslund

[MERGED] Chaining SureBackup jobs?

Veeam Logoby zoltank » Tue Feb 17, 2015 5:03 pm

Do you know when we'll be able to start chaining SureBackup jobs?
zoltank
Expert
 
Posts: 210
Liked: 29 times
Joined: Fri Feb 18, 2011 5:01 pm

Re: Chain SureBackup Jobs

Veeam Logoby Vitaliy S. » Tue Feb 17, 2015 8:25 pm

If you want to chain your SureBackup jobs after backup/replication jobs, then you could you use this option.
Vitaliy S.
Veeam Software
 
Posts: 19564
Liked: 1103 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Chain SureBackup Jobs

Veeam Logoby zoltank » Wed Feb 18, 2015 2:17 pm

That doesn't work for SureBackup jobs.

You can have a backup job linked to start after a backup job.
You can have a SureBackup job linked to start after a backup job.
You cannot have a SureBackup job linked to start after a SureBackup job.

In fact, it doesn't look like you can have anything linked to start after a SureBackup job.
zoltank
Expert
 
Posts: 210
Liked: 29 times
Joined: Fri Feb 18, 2011 5:01 pm

Re: Chain SureBackup Jobs

Veeam Logoby Vitaliy S. » Wed Feb 18, 2015 2:58 pm

Yes, that's right. In this case PowerShell script should be a solution for this. On a side note, can you please tell me a bit more about your use case for chaining SB jobs?
Vitaliy S.
Veeam Software
 
Posts: 19564
Liked: 1103 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Chain SureBackup Jobs

Veeam Logoby zoltank » Thu Feb 19, 2015 3:35 pm

Vitaliy S. wrote:Yes, that's right. In this case PowerShell script should be a solution for this. On a side note, can you please tell me a bit more about your use case for chaining SB jobs?


Sure. We do a set of backups to a Veeam server located in remote part of the building, and it isn't in a very secure location, therefore we use self encrypting drives and have Veeam encryption also turned on. It doesn't have the fastest disk subsystem either, so it's definitely on the slow side for SureBackup. An application group of a DC and the Exchange 2010 witness server are required to check our Exchange backup job. However, the extra IO requirement for the application group frequently makes SureBackup for VMs in other backup jobs fail since they just can't start in time (and allocating 30 minutes for each VM to start isn't feasible). Our solution is to run a SureBackup job just for Exchange with it's application group, and then a second SureBackup job without the application group for everything else.
zoltank
Expert
 
Posts: 210
Liked: 29 times
Joined: Fri Feb 18, 2011 5:01 pm

[MERGED] : Surebackup Job scheduling options

Veeam Logoby Anders » Fri Jan 22, 2016 9:57 am

Hi everyone

I have an issue with scheduling Surebackup jobs.

I have 15 jobs that all use the same Lab that I want to run every Monday and Thursday. I want them all to run right after each other.

When 1 job starts and another is not finished, the job ends with an error saying the lab is in use, instead of just waiting for the lab to be available.

I cannot Schedule jobs with the "After job", as Surebackup jobs are not in that list (why is that? I find it strange you cannot run a tape job to copy the job to tape, after the files are testet)

The only solution I can see is to time every job with a worst case scenario, and manually figure out when each job needs to start. This is alot of Work, and will break when someone creates a new VM. Not very smart.

If that is really the only way to do it, consider this a feature request to be able to use "After job" with surebackup jobs, and/or let a job wait for a lab to be ready, instead of just aborting, when it is in use.

Version is V9 RTM.

Thanks,
Anders
Anders
Enthusiast
 
Posts: 36
Liked: 7 times
Joined: Thu Sep 09, 2010 9:45 am
Full Name: Anders Lorensen

Re: Chain SureBackup Jobs

Veeam Logoby v.Eremin » Fri Jan 22, 2016 10:48 am

Hi, Andreas,

You can use the script provided above to chain surebackup activity.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13279
Liked: 969 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Next

Return to VMware vSphere



Who is online

Users browsing this forum: Yahoo [Bot] and 21 guests