###### this part is from bacula-dir.conf

Director {                            # define myself
  Name = bart-dir
  DIRport = 9101                # where we listen for UA connections
  Maximum Concurrent Jobs = 5
  ...
}


# Definiton of file storage device
Storage {
  Name = GoceptChanger;
  Address = bart.whq.gocept.com                # N.B. Use a fully qualified name here
  SDPort = 9103
  Device = GoceptChanger;
  Media Type = DLT40;
  AutoChanger = yes;
  Maximum Concurrent Jobs = 1;
}

Catalog {
  Name = MyCatalog
  ...
}

# Default pool definition
Pool {
  Name = ChangerPool;
  Pool Type = Backup;
  Recycle = yes;                       # Bacula can automatically recycle Volumes
  Accept Any Volume = yes;           # write on any volume in the pool
  Purge Oldest Volume = yes;
}

################# this part is from bacula-sd.conf

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

Director {
  Name = bart-dir
  ...
}

Autochanger {
	Name = GoceptChanger;
	Device = GoceptChangerDev;
	Changer Device=/dev/sg3;
	Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d";
}

Device {
  Name = GoceptChangerDev;
  Drive Index = 0
  Media Type = DLT40;
  Archive Device = /dev/nst0;
  AutomaticMount = yes;               
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes;
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  SpoolDirectory = /mnt/hold/bacula
  Maximum Spool Size = 5000000000    # About 5gb
}
