Director {
  Name = "bacula-dir"
  Messages = "Daemon"
  QueryFile = "/opt/bacula/scripts/query.sql"
  WorkingDirectory = "/opt/bacula/working"
  PidDirectory = "/opt/bacula/working"
  MaximumConcurrentJobs = 20
  Password = "XXXXX"
}
Client {
  Name = "bacula-client"
  Address = "aaa.bbb.ccc.20"
  FdPort = 9102
  Password = "XXXX"
  Catalog = "MyCatalog"
  FileRetention = 1555200
  JobRetention = 1555200
  AutoPrune = yes
}
Client {
  Name = "bacula-fd"
  Address = "aaa.bbb.ccc.22"
  FdPort = 9102
  Password = "XXXX"
  Catalog = "MyCatalog"
  FileRetention = 5184000
  JobRetention = 15552000
  AutoPrune = yes
}
Job {
  Name = "BackupCatalog"
  Level = "Full"
  Fileset = "Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  JobDefs = "DefaultJob"
  WriteBootstrap = "/opt/bacula/working/%n.bsr"
  Runscript {
    RunsWhen = "Before"
    RunsOnClient = no
    Command = "/opt/bacula/scripts/make_catalog_backup.pl MyCatalog"
  }
  Runscript {
    RunsWhen = "After"
    RunsOnClient = no
    Command = "/opt/bacula/scripts/delete_catalog_backup"
  }
  Priority = 11
}
Job {
  Name = "BackupClient1"
  JobDefs = "DefaultJob"
}
Job {
  Name = "RestoreFiles"
  Type = "Restore"
  Messages = "Standard"
  Storage = "Disk-Storage"
  Pool = "File"
  Client = "bacula-fd"
  Fileset = "Full Set"
  Where = "/var/lib/bacula/bacula-restores"
}
Job {
  Name = "bacula-client"
  Client = "bacula-client"
  Fileset = "etc"
  JobDefs = "JobsCOMAE"
  Enabled = yes
}
Storage {
  Name = "Disk-Storage"
  SdPort = 9103
  Address = "aaa.bbb.ccc.20"
  Password = "XXXX"
  Device = FileStorage
  MediaType = Aligned
  HeartbeatInterval = 90
  MaximumConcurrentJobs = 150
}
Storage {
  Name = "RoboFitas"
  SdPort = 9103
  Address = "aaa.bbb.ccc.20"
  Password = "XXXX"
  Device = "STK-SL150"
  MediaType = "LTO"
  Autochanger = "RoboFitas"
  MaximumConcurrentJobs = 10
}
Catalog {
  Name = "MyCatalog"
  Password = "XXXX"
  User = "bacula"
  DbName = "bacula"
}
Schedule {
  Name = "WeeklyCycle"
  Run = Level="Full" 1st sun at 23:05
  Run = Level="Differential" 2nd,3rd,4th,5th sun at 23:05
  Run = Level="Incremental" mon,tue,wed,thu,fri,sat at 23:05
}
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Level="Full" at 23:10
}
Schedule {
  Name = "agenda"
  Run = Pool="Diaria" Level="Differential" mon,tue,wed,thu at 13:32
  Run = Pool="Semanal" Level="Full" fri at 11:20
  Run = Pool="Semanal" Level="Full" mon at 14:50
}
Fileset {
  Name = "Catalog"
  Include {
    File = "/opt/bacula/working/bacula.sql"
    Options {
      #Signature = "Md5"
      Signature = "SHA256"
    }
  }
}
Fileset {
  Name = "Full Set"
  Include {
    File = "/opt/bacula/bin"
    Options {
      #Signature = "Md5"
      Signature = "SHA256"
    }
  }
  Exclude {
    File = "/opt/bacula/working"
    File = "/var/lib/bacula"
    File = "/proc"
    File = "/tmp"
    File = "/sys"
    File = "/.journal"
    File = "/.fsck"
  }
}
Fileset {
  Name = "etc"
  Include {
    File = "/etc"
    Options {
      #Signature = "Md5"
      Signature = "SHA256"
    }
  }
}
Pool {
  Name = "Default"
  PoolType = "Backup"
  MaximumVolumes = 100
  MaximumVolumeBytes = 53687091200
  VolumeRetention = 31536000
  AutoPrune = yes
  Recycle = yes
}
Pool {
  Name = "Diaria"
  PoolType = "Backup"
  MaximumVolumes = 6
  VolumeRetention = 345600
  VolumeUseDuration = 86400
  AutoPrune = yes
  Recycle = yes
}
Pool {
  Name = "File"
  PoolType = "Backup"
  LabelFormat = "Vol-"
  MaximumVolumes = 100
  MaximumVolumeBytes = 53687091200
  VolumeRetention = 31536000
  AutoPrune = yes
  Recycle = yes
}
Pool {
  Name = "Scratch"
  PoolType = "Backup"
}
Pool {
  Name = "Semanal"
  PoolType = "Backup"
  MaximumVolumes = 2
  VolumeRetention = 259200
  VolumeUseDuration = 259200
  AutoPrune = yes
  Recycle = yes
}
Messages {
  Name = "Daemon"
  MailCommand = "/opt/bacula/bin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula daemon message\" %r"
  Mail = root = All, !Skipped
  Append = /opt/bacula/log/bacula.log = All, !Skipped
  Console = All, !Skipped
}
Messages {
  Name = "Standard"
  MailCommand = "/opt/bacula/bin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula: %t %e of %c %l\" %r"
  OperatorCommand = "/opt/bacula/bin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula: Intervention needed for %j\" %r"
  Mail = root = All, !Skipped
  Append = /opt/bacula/log/bacula.log = All, !Skipped
  Console = All, !Skipped
  Operator = root = Mount
  Catalog = All
}
Console {
  Name = "bacula-mon"
  Password = "XXXX"
  CommandAcl = "status"
  CommandAcl = ".status"
}
JobDefs {
  Name = "DefaultJob"
  Type = "Backup"
  Level = "Incremental"
  Messages = "Standard"
  Storage = "Disk-Storage"
  Pool = "File"
  Client = "bacula-fd"
  Fileset = "Full Set"
  Schedule = "WeeklyCycle"
  WriteBootstrap = "/opt/bacula/working/%c.bsr"
  SpoolAttributes = yes
  Priority = 10
}
JobDefs {
  Name = "JobsCOMAE"
  Type = "Backup"
  Level = "Differential"
  Messages = "Standard"
  Storage = "RoboFitas"
  Pool = "Default"
  Schedule = "agenda"
  Priority = 9
}
