Bacula-users

Re: [Bacula-users] How to cancel a job before it begins?

2010-04-22 15:57:41
Subject: Re: [Bacula-users] How to cancel a job before it begins?
From: Phil Stracchino <alaric AT metrocast DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 22 Apr 2010 15:55:08 -0400
On 04/22/10 15:21, Matias Banchoff wrote:
> Hi,
>   is there a way to cancel a job before it starts running -without
> changing Bacula's configuration-.
> 
>   This is the problem: I have a job that is going to run at midnight,
> but for some reason I do not want it to run this particular night
> (Because the storage device will not be able to catch the data sent,
> but only for this night). That's why I'd like to cancel the job.
> 
>   I've commented the lines in my Bacula config and there were no
> problems, but I ask just to know if it is possible or not.

That alone won't cancel the job, but if you now tell the director to
reload, that will do it.

For future reference, you don't need to comment out the whole job.
There are several better ways to do it.  One is to insert an "Enabled =
No" directive in the Job directive, then reload.  Another is to keep
around an empty Schedule (I call mine "NEVER") for such purposes.

But the simplest and best way of all, which doesn't even require a
reload or any configuration editing at all?  At the console, enter this
command:

disable job="Your Job Name Here"

You can do this either by typing the command directly at a console, or
from the right-click menu from the Job list in BAT.  Then, tomorrow,
just undo it:

enable job="Your Job Name Here"

And you're all set.


-- 
  Phil Stracchino, CDK#2     DoD#299792458     ICBM: 43.5607, -71.355
  alaric AT caerllewys DOT net   alaric AT metrocast DOT net   phil AT 
co.ordinate DOT org
         Renaissance Man, Unix ronin, Perl hacker, Free Stater
                 It's not the years, it's the mileage.

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>