#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 3.0.1 (30 April 2009) -- redhat 
#
# You may need to change the name of your tape drive
#   on the "Archive Device" directive in the Device
#   resource.  If you change the Name and/or the 
#   "Media Type" in the Device resource, please ensure
#   that dird.conf has corresponding changes.
#

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

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = bacula03-dir
  Password = "ziega.29"
}

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

#
# Dell ML6000 - 2X LTO4 Drives  
#
Autochanger {
  Name = ML6000
  Device = ML6000-LTO4-0, ML6000-LTO4-1
  Changer Command = "/usr/lib64/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg11
}

Device {
  Name = ML6000-LTO4-0
  Drive Index = 0
  Media Type = LTO
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  LabelMedia = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Maximum Network Buffer Size = 262144
  Maximum Block Size = 262144
  Maximum File Size = 5G
  #Alert Command = "sh -c 'sudo /usr/sbin/tapeinfo -f /dev/sg7 | /bin/sed -n /TapeAlert/p'"
  Alert Command = "sh -c 'date >> /var/lib/bacula/sg7; sudo /usr/sbin/smartctl -H -l error /dev/sg7 | tee -a /var/lib/bacula/sg7'" 
  Maximum Concurrent Jobs = 1
}

Device {
  Name = ML6000-LTO4-1
  Drive Index = 1
  Media Type = LTO
  Archive Device = /dev/nst2
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  LabelMedia = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Maximum Network Buffer Size = 262144
  Maximum Block Size = 262144
  Maximum File Size = 5G
  #Alert Command = "sh -c 'sudo /usr/sbin/tapeinfo -f /dev/sg10 | /bin/sed -n /TapeAlert/p'"
  Alert Command = "sh -c 'date >> /var/lib/bacula/sg10; sudo /usr/sbin/smartctl -H -l error /dev/sg10 | tee -a /var/lib/bacula/sg10'" 
  Maximum Concurrent Jobs = 1
}

#
# IBM TS3200 - 2X LTO5 Drives
#
Autochanger {
  Name = TS3200
  Device = TS3200-LTO5-0, TS3200-LTO5-1
  Changer Command = "/usr/lib64/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg9
}

Device {
  Name = TS3200-LTO5-0
  Drive Index = 0
  Media Type = LTO
  Archive Device = /dev/nst1
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  LabelMedia = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Maximum Network Buffer Size = 262144
  Maximum Block Size = 262144
  Maximum File Size = 5G
  #Alert Command = "sh -c 'sudo /usr/sbin/tapeinfo -f /dev/sg8 | /bin/sed -n /TapeAlert/p'"
  Alert Command = "sh -c 'date >> /var/lib/bacula/sg8; sudo /usr/sbin/smartctl -H -l error /dev/sg8 | tee -a /var/lib/bacula/sg8'" 
  Maximum Concurrent Jobs = 1
}

Device {
  Name = TS3200-LTO5-1
  Drive Index = 1
  Media Type = LTO
  Archive Device = /dev/nst3
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  LabelMedia = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Maximum Network Buffer Size = 262144
  Maximum Block Size = 262144
  Maximum File Size = 5G
  #Alert Command = "sh -c 'sudo /usr/sbin/tapeinfo -f /dev/sg12 | /bin/sed -n /TapeAlert/p'"
  Alert Command = "sh -c 'date >> /var/lib/bacula/sg12; sudo /usr/sbin/smartctl -H -l error /dev/sg12 | tee -a /var/lib/bacula/sg12'" 
  Maximum Concurrent Jobs = 1
}

Device {
  Name = FileStorage-1
	MediaType = File
	Archive Device = /mnt/sdc1/bacula
	LabelMedia = yes;
	Random Access = yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = ESX-vcbMounter
  MediaType = File
  Archive Device = /mnt/sdc1/bacula
  LabelMedia = yes;
  Random Access = yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

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