#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 1.38.5 (18 January 2006) -- suse 10.0
#
# 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 = heem-sd
  SDPort = 9103						# Director's port
  WorkingDirectory = "/usr/local/bacula/working"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20				# For communication with director. Not for actual backup jobs. So 20 is o.k.
}

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

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = heem-mon
  Password = "Vo/ntIQJgFlUd4xhkB26KHL4BXkZFjai/z4aRT+N273O"
  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 = "IBM_Ultrium"
#  Media Type = "LTO-2"
#  Archive Device = /dev/nst0
#  AlwaysOpen = yes		# Recommended option setting is "yes". Ignored for file storage. Needs "no" for auto tape sensing!
#  AutomaticMount = yes		# Read device even if it's *not* open: SD looks for Bacula labeled volume: When SD is started; at beginning of each job.
##  VolumePollInterval = 1 minute	# Look for a new tape every given interval.
#  Offline On Unmount = no	# Default is yes. See manual section. Set the same as the following option. This is to prevent wear of the tape.
#  CloseOnPoll = no		# Set the same as the above option. This is to prevent wear of the tape.
##  MaximumOpenWait = 3 days	# Last chance if the above don't work with Linux Kernel version 2.6.xx.
#  RemovableMedia = yes
#  RandomAccess = no
#  Label Media = yes
##  MaximumSpoolSize = 10G	# 10 GB spool size. In Bytes: 10000000000
##  SpoolDirectory = /var/spool/bacula
#}


#  Hardware End of Medium = yes		# Default. Important! See manual section!
#  Fast Forward Space File = yes	# Default. Important! See manual section!
#  Use MTIOCGET = yes			# Default. Important! See manual section!
#  Maximum Network Buffer Size = 32768	# Default. Try 65536. Also change in FDs!
#  Maximum Spool Size = 5G		# 5GB Spool Size
#  Maximum Job Spool Size = 5G		# 5GB spool size per job.
#  Spool Directory = /var/spool/bacula	# Be careful to exclude!


Autochanger {
  Name = "Exabyte_221L"
  Device = "Ultrium2_DriveBay1"
  Changer Device = /dev/sg0	# Must be in Autochanger resource for btape to test the autochanger! Unbelievable, but that's the way it is!
  ChangerCommand = "/usr/local/bacula/scripts/mtx-changer %c %o %S %a %d"
}


Device {
  Name = "Ultrium2_DriveBay1"
  DeviceType = "Tape"
  Media Type = "LTO-2"
  Autochanger = yes		# Must be (!) here if device belongs to an autochanger!
  Drive Index = 0
  Autoselect = yes		# Device is automatically selected and need not be specified in the Director.
  MaximumChangerWait = 420	# Wait 7 Minutes (default: 5) for robot to change the tape.
#  Changer Device = /dev/sg0	# Must be (!) generic SCSI device name corresponding to specification in Archive Device! More advanced changers use sg1!
  Archive Device = /dev/nst0
  #Alert Command = "sh -c 'tapeinfo -f %c | grep TapeAlert'"	# This is optional, not necessary for an autochanger. Add "|grep -v grep | cat"???

  AlwaysOpen = no              # Recommended option setting is "yes". Ignored for file storage. Needs "no" for auto tape sensing!
  AutomaticMount = yes          # Read device even if it's *not* open: SD looks for Bacula labeled volume: When SD is started; at beginning of each job.
  Offline On Unmount = no       # Default is no. Some autochangers require an unmount prior to changing. Most do not and get very confused!
#  MaximumOpenWait = 3 days     # Time bacula waits for a busy device. Default is 5 minutes. Manual says specify in seconds.
  RemovableMedia = yes
  RandomAccess = no
  MaximumNetworkBufferSize = 65536	# Must be the same in all FDs, too!
  Label Media = no		# If no (default) tape labeling only by Operator/Console or when tape has been recycled.
  MaximumSpoolSize = 5G       # 10 GB spool size. In Bytes: 10000000000
  SpoolDirectory = /var/spool/bacula
}


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