On Fri, 23 Nov 2007, Tom Meiner wrote:

> Hi,
>
> I have an autochanger with 1 drive and 8 media. Every Friday all tapes
> are outhaused. So I need to make a "update slots" after replacing the tapes.
>
> How can I create a job schedule in the director to do this every friday
> afternoon?

========
/usr/local/bin/updateslots

#!/bin/sh
echo 'update slots Storage=MSL6000-changer drive=0' \
     | /usr/sbin/bconsole -c /etc/bacula/bconsole.conf
=========

/etc/bacula/bacula-dir/conf

##############    JOBS-CATALOG    ####################################
# Update tape library slot inventory
Job {
   Name = "UpdateSlots"
   Type = Admin
   JobDefs = "DefaultJob"
   Level = Full
   FileSet="None"
   Schedule = "UpdateSlots"
   RunBeforeJob = "/usr/local/bin/updateslots"
   Write Bootstrap = "/var/bacula/bootstraps/UpdateSlots.bsr"
   Spool Data = no
   Pool = High-churnPool
}
###########################################################

######################################################################
# This schedule is for changer synchronisation
Schedule {
   Name = "UpdateSlots"
   Run = Full daily at 12:30
   Run = Full daily at 21:30
   Run = Full daily at 17:00
}
######################################################################


Adjust schedule to suit.



>
> Tom
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to