Bacula-users

Re: [Bacula-users] command to check if bacula is running?

2013-06-27 13:06:43
Subject: Re: [Bacula-users] command to check if bacula is running?
From: Konstantin Khomoutov <flatworm AT users.sourceforge DOT net>
To: Joseph Spenner <joseph85750 AT yahoo DOT com>
Date: Thu, 27 Jun 2013 21:03:25 +0400
On Thu, 27 Jun 2013 08:45:48 -0700 (PDT)
Joseph Spenner <joseph85750 AT yahoo DOT com> wrote:

> Is there a simple command line way to determine if bacula is not
> currently running any jobs? I want to write a script to perform some
> other backups of the bacula database, but want to make sure it's not
> currently running.
> 
> I was thinking something like:
> 
> 
> # echo "status director" |bconsole
>   (and maybe 'grep' for something which would/wouldn't be there when
> the bacups are running.
> 
> Any ideas would be great.

Why not inverse the logic and make Bacula run your backup script as an
admin job?  You could then schedule it to run when no other jobs are
run.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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>