Video Screencast Help

Automatically start another job when a previous job finishes, using policies with multiple selection lists

Created: 11 Dec 2013 • Updated: 16 Dec 2013 | 1 comment
This issue has been solved. See solution.

Hi all,

We have a customer running backups on BE 2010 R3 according to the following schedule:

 

  • Monday - Full
  • Tuesday - Differential
  • Wednesday - Full
  • Thursday - Differential
  • Friday - Full

The Full jobs run from 21:00 untill 07:00. (so the backup takes all night)

We receive an e-mail notification if the job completed or not.

The customer now wants to receive an e-mail notification whether the backup from a certain server was succesfull or not.
My first thought was: I make 2 jobs per day:

  1. Monday - Full - Excluding SERVER A - mail notification to our company
  2. Monday - Full - SERVER A - mail notifcation to customer and to our company
  3. Tuesday - Differential - Excluding SERVER A - mail notification to our company
  4. Tuesday - Differential - SERVER A - mail notification to customer and to our company
  5. ......

I started by making 2 selection lists:

  1. Selection "ALL DATA - Excluding SERVER A"
  2. Selection "SERVER A"

My first problem was: how do I automatically start a second job if the previous job finished?
After a few minutes of googling I learned that I could use a Policy to achieve this.

I've set this up, using 1 policy per day. The last issue I can't tackle, is this:
Policy "Monday" contains two job templates:

  1. Monday - Full - Excluding SERVER A
  2. Monday - Full - SERVER A

Rules:

  1. After "Monday - Full - Excluding SERVER A" has finished, start "Monday - Full - SERVER A"

So that looked ok, only weird thing was that I couldn't select a "selection list", per template :(
That's also where the problem is.
When I generate the jobs for that policy, BE asks which "selection lists" I want to use.
In this case I selected "ALL DATA - Excluding SERVER A" and "SERVER A"

But then BE doesn't do what I want.
BE makes 4 jobs, instead of 2:

  1. Selection list "ALL DATA - Excluding SERVER A" - Template job "Monday - Full - Excluding SERVER A"
  2. Selection list "ALL DATA - Excluding SERVER A" - Template job "Monday - Full - SERVER A"
  3. Selection list "SERVER A" - Template job "Monday - Full - Excluding SERVER A"
  4. Selection list "SERVER A" - Template job "Monday - Full - SERVER A"

So I conclude that BE makes jobs based on selection lists :(
When I try to edit the selection lists from those jobs, BE says it's gonna apply those changes to all associated jobs :(

So, basically, what I want is 2 jobs per night, existing of 1 job per selection list, managed from 1 policy:

  1. Selection list "ALL DATA - Excluding SERVER A" - Template job "Monday - Full - Excluding SERVER A"
  2. Selection list "SERVER A" - Template job "Monday - Full - SERVER A"

Can this be done?
This problem would'nt exist if you were able to select a job template from another policy (where you would have an other selection list), but this isn't possible.

An easier why to do this is if we do not modify anything, but just add the customer is the current mail notifications, but that's something we do not want.

Thanks in advance.

 

Operating Systems:

Comments 1 CommentJump to latest comment

pkh's picture

You cannot use a policy because you cannot apply more than one selection list to a policy at one time. You should create 2 jobs and use one job to start the other job. See my blog below on how to do so.

 

https://www-secure.symantec.com/connect/blogs/use-...

SOLUTION