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

Director {
  Name = asteroid-dir
  Password = "something-here"
}

Director {
  Name = asteroid-mon
  Password = "something-here"
  Monitor = yes
}

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

Autochanger {
  Name = sata-dock-1
  Device = sata-dock-1-disk-0-drive-0
  Device = sata-dock-1-disk-0-drive-1
  Device = sata-dock-1-disk-1-drive-0
  Device = sata-dock-1-disk-1-drive-1
  Device = sata-dock-1-disk-2-drive-0
  Device = sata-dock-1-disk-2-drive-1
  Device = sata-dock-1-disk-3-drive-0
  Device = sata-dock-1-disk-3-drive-1

  Changer Command = "/usr/local/bin/vchanger %c %o %S %a %d"
  Changer Device = "/etc/bacula/vchanger-1.conf"
}

Device {
  Name = sata-dock-1-disk-0-drive-0
  # DriveIndex is the index of the virtual drive.
  DriveIndex = 0
  Autochanger = yes;
  DeviceType = File
  MediaType = RemovableDiskFile
  ArchiveDevice = /var/lib/bacula/vchanger-1/0/drive0
  RemovableMedia = no;
  RandomAccess = yes;
}

Device {
  Name = sata-dock-1-disk-0-drive-1
  # DriveIndex is the index of the virtual drive.
  DriveIndex = 1
  Autochanger = yes;
  DeviceType = File
  MediaType = RemovableDiskFile
  ArchiveDevice = /var/lib/bacula/vchanger-1/0/drive1
  RemovableMedia = no;
  RandomAccess = yes;
}

Device {
  Name = sata-dock-1-disk-1-drive-0
  # DriveIndex is the index of the virtual drive.
  DriveIndex = 0
  Autochanger = yes;
  DeviceType = File
  MediaType = RemovableDiskFile
  ArchiveDevice = /var/lib/bacula/vchanger-1/1/drive0
  RemovableMedia = no;
  RandomAccess = yes;
}

Device {
  Name = sata-dock-1-disk-1-drive-1
  # DriveIndex is the index of the virtual drive.
  DriveIndex = 1
  Autochanger = yes;
  DeviceType = File
  MediaType = RemovableDiskFile
  ArchiveDevice = /var/lib/bacula/vchanger-1/1/drive1
  RemovableMedia = no;
  RandomAccess = yes;
}

Device {
  Name = sata-dock-1-disk-2-drive-0
  # DriveIndex is the index of the virtual drive.
  DriveIndex = 0
  Autochanger = yes;
  DeviceType = File
  MediaType = RemovableDiskFile
  ArchiveDevice = /var/lib/bacula/vchanger-1/2/drive0
  RemovableMedia = no;
  RandomAccess = yes;
}

Device {
  Name = sata-dock-1-disk-2-drive-1
  # DriveIndex is the index of the virtual drive.
  DriveIndex = 1
  Autochanger = yes;
  DeviceType = File
  MediaType = RemovableDiskFile
  ArchiveDevice = /var/lib/bacula/vchanger-1/2/drive1
  RemovableMedia = no;
  RandomAccess = yes;
}

Device {
  Name = sata-dock-1-disk-3-drive-0
  # DriveIndex is the index of the virtual drive.
  DriveIndex = 0
  Autochanger = yes;
  DeviceType = File
  MediaType = RemovableDiskFile
  ArchiveDevice = /var/lib/bacula/vchanger-1/3/drive0
  RemovableMedia = no;
  RandomAccess = yes;
}

Device {
  Name = sata-dock-1-disk-3-drive-1
  # DriveIndex is the index of the virtual drive.
  DriveIndex = 1
  Autochanger = yes;
  DeviceType = File
  MediaType = RemovableDiskFile
  ArchiveDevice = /var/lib/bacula/vchanger-1/3/drive1
  RemovableMedia = no;
  RandomAccess = yes;
}

Messages {
  Name = Standard
  director = asteroid-dir = all
}
