Discussions specific to the VMware vSphere hypervisor
Post Reply
axelklos
Enthusiast
Posts: 34
Liked: 1 time
Joined: Nov 29, 2011 7:47 pm
Full Name: Axel Klos
Contact:

Dependencies between backup jobs

Post by axelklos »

hi,

actually we have following scenario:

- backup server running veeam, also contains cifs share for backup
- backup proxy

we setup 2 different jobs running synthetic backup.

because both backup jobs backup to same cifs share we would avoid
build parallel create of fullsynthetic / incremental backup.
setup different time windows is not an option because amount of
vmwares in backup job1 could increase.

ideally second backup job could start after job1 has finished.
if it's possible to run a backup job in command line then
an idea would be running job 1, if this is finished running job2
as post command

is this possible?

regards

axel

axelklos
Enthusiast
Posts: 34
Liked: 1 time
Joined: Nov 29, 2011 7:47 pm
Full Name: Axel Klos
Contact:

Re: Dependencies between backup jobs

Post by axelklos »

probally I could do following via powershell extension

- create job 1 and schedule it daily
- create job 2 and do not schedule it
- create powershell script to run job2
- running powershell script after job1 is finished

but will be the job2 also use the polices set in job (keep backups 14 days, every saturday build
fullsynthetic) when it's started by powershell script?


is this possible?

ThomasMc
Expert
Posts: 293
Liked: 18 times
Joined: Apr 13, 2011 12:45 pm
Full Name: Thomas McConnell
Contact:

Re: Dependencies between backup jobs

Post by ThomasMc »

Isn't that what concurrent tasks are for

tsightler
VP, Product Management
Posts: 5679
Liked: 2499 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Dependencies between backup jobs

Post by tsightler »

axelklos wrote:probally I could do following via powershell extension

- create job 1 and schedule it daily
- create job 2 and do not schedule it
- create powershell script to run job2
- running powershell script after job1 is finished

but will be the job2 also use the polices set in job (keep backups 14 days, every saturday build
fullsynthetic) when it's started by powershell script?
You honestly don't need powershell to simply chain jobs. On the final page of the job wizard (Summary) the wizard displays the command line that you can execute to run this job. Simply don't schedule the second job, but copy the command for running this second job, and paste it into the "post-job activity" of the first job. Poof! Chained jobs, no scripting required (with all apologies to Thomas).

foggy
Veeam Software
Posts: 19465
Liked: 1767 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Dependencies between backup jobs

Post by foggy »

Yes, please check this topic for more details.
axelklos wrote:but will be the job2 also use the polices set in job (keep backups 14 days, every saturday build
fullsynthetic) when it's started by powershell script?
Each job will use its own settings when it is started.

Vitaliy S.
Product Manager
Posts: 24260
Liked: 1865 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Dependencies between backup jobs

Post by Vitaliy S. »

ThomasMc wrote:Isn't that what concurrent tasks are for
I concur with that, as by limiting concurrent task by one at a time you will resolve your jobs scheduling issues and will not use any scripts at all!

Gostev
SVP, Product Management
Posts: 26706
Liked: 4277 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Dependencies between backup jobs

Post by Gostev »

Note that if you have more than one proxy, then you can instead limit concurrent tasks on backup repository to one, and this will give the same result. Thanks.

axelklos
Enthusiast
Posts: 34
Liked: 1 time
Joined: Nov 29, 2011 7:47 pm
Full Name: Axel Klos
Contact:

Re: Dependencies between backup jobs

Post by axelklos »

Gostev wrote:Note that if you have more than one proxy, then you can instead limit concurrent tasks on backup repository to one, and this will give the same result. Thanks.
hey good idea .. does it mean a task is a backup job?

Vitaliy S.
Product Manager
Posts: 24260
Liked: 1865 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Dependencies between backup jobs

Post by Vitaliy S. »

Here is a good explanation of what term "task" means: VMware : [FAQ] FREQUENTLY ASKED QUESTIONS

Post Reply

Who is online

Users browsing this forum: M.Escobar and 19 guests