#
# Default Bacula Storage Daemon Configuration file
#


Storage {                             # definition of myself
  Name = Bacula-sd
  SDPort = 9103                  # Director's port      
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = Bacula-dir
  Password = ""
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = Bacula-mon
  Password = ""
  Monitor = yes
}

#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
#  same Name and MediaType. 
#

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /tmp
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
    Name = TapeStorage
    Media Type = LTO-2
    Archive Device = /dev/nst0
    Automatic Mount = yes;
    LabelMedia = yes
    AlwaysOpen = no;
    RemovableMedia = yes;
    RandomAccess = no;
    Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
    Changer Device = /dev/sg3
    AutoChanger = yes
    Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

# 
# Send all messages to the Director, 
# mount messages also are sent to the email address
#
Messages {
  Name = Standard
  director = Bacula-dir = all
}
