On 23 Mar 2006 at 15:41, Kern Sibbald wrote:

> On Thursday 23 March 2006 14:00, Dan Langille wrote:
> > On 23 Mar 2006 at 13:48, Turbo Fredriksson wrote:
> > > Quoting Rowdy <[EMAIL PROTECTED]>:
> > > >> I'd like to disable this client
> > > >
> > > > I found that I had to comment the Job and the Client sections for the
> > > > machine to be excluded.
> > >
> > > Is there any way of disabling a client temporarily by modifying the
> > > database directly (i.e. via SQL command and NOT touch any files or
> > > restarting any processes)?
> >
> > No.
> 
> Correct. Until I slipped a new command to 1.38.6-beta6 (for my vacation) :-)

That would  be the disable/enable command:

$ bconsole -c /usr/local/etc/bconsole.conf
Connecting to Director ngaio:9101
1000 OK: ngaio-dir Version: 1.38.6-beta6 (16 March 2006)
Enter a period to cancel a command.
*st dir
Using default Catalog name=MyCatalog DB=bacula
ngaio-dir Version: 1.38.6-beta6 (16 March 2006) i386-portbld-
freebsd6.1 freebsd 6.1-PRERELEASE
Daemon started 22-Mar-06 11:01, 4 Jobs run since started.

Scheduled Jobs:
Level          Type     Pri  Scheduled          Name               
Volume
======================================================================
=============
Incremental    Backup    10  23-Mar-06 23:05    Client1            
TestVolume0003
Full           Backup    11  23-Mar-06 23:10    BackupCatalog      
TestVolume0003
====

*** Now I disable the job:

disable job=Client1
Job "Client1" disabled
*st dir
ngaio-dir Version: 1.38.6-beta6 (16 March 2006) i386-portbld-
freebsd6.1 freebsd 6.1-PRERELEASE
Daemon started 22-Mar-06 11:01, 4 Jobs run since started.

Scheduled Jobs:
Level          Type     Pri  Scheduled          Name               
Volume
======================================================================
=============
Full           Backup    11  23-Mar-06 23:10    BackupCatalog      
TestVolume0003
====


*** and enable the job:


*enable job=Client1
Job "Client1" enabled
*st dir
ngaio-dir Version: 1.38.6-beta6 (16 March 2006) i386-portbld-
freebsd6.1 freebsd 6.1-PRERELEASE
Daemon started 22-Mar-06 11:01, 4 Jobs run since started.

Scheduled Jobs:
Level          Type     Pri  Scheduled          Name               
Volume
======================================================================
=============
Incremental    Backup    10  23-Mar-06 23:05    Client1            
TestVolume0003
Full           Backup    11  23-Mar-06 23:10    BackupCatalog      
TestVolume0003


NOTE: any disabled jobs are renabled if you restart bacula-dir.

-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to