Director {                      # define myself
  Name = ip-10-0-41-192-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/opt/bacula/scripts/query.sql"
  WorkingDirectory = "/opt/bacula/working"
  PidDirectory = "/opt/bacula/working"
  Maximum Concurrent Jobs = 20
  Password = "MASKED-PASSWORD-FOR-CONSOLE-CONNECT"         # Console password
  Messages = Daemon
}

Catalog {
  Name = MyCatalog
  dbname = "bacula";
  user = "bacula";
  password = "MASKED-PASSWROD-TO-CONNECT-CATALOG-DATABASE";
  DB Address = RDS-instance.hostname.amazonaws.com
  DB Port = 3306
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = ip-10-0-41-192-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = File1
  Messages = Standard
  Pool = File
  SpoolAttributes = yes
  Priority = 10
  Write Bootstrap = "/opt/bacula/working/%c.bsr"
}

Job {
  Name = "solaris-11-via-vtl"
  Type = Backup
  Level = Incremental
  Client = solaris-11-fd
  JobDefs = "DefaultJob"
  Storage = AWS-Storage-Gateway-VTL
  Spool Data = yes    # Avoid shoe-shine
  Pool = AWS-Storage-Gateway-VTL
}

FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
    }
    File = /
  }
  Exclude {
    File = /opt/bacula/working
    File = /tmp    
  }
}

Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st sun at 23:05
  Run = Differential 2nd-5th sun at 23:05
  Run = Incremental mon-sat at 23:05
}

Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 23:10
}

Client {
  Name = solaris-11-fd
  Address = 10.0.78.28
  FDPort = 9102
  Catalog = MyCatalog
  Password = "MASKED-PASSWORD-CONNECT-FILE-DAEMON"   # password for FileDaemon 2
  File Retention = 60 days           # 60 days
  Job Retention = 6 months           # six months
  AutoPrune = yes                    # Prune expired Jobs/Files
}

Pool {
  Name = AWS-Storage-Gateway-VTL
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
  Maximum Volumes = 100               # Limit number of Volumes in Pool
}

Storage {
  Name = AWS-Storage-Gateway-VTL
  Address = ip-10-0-41-192
  SDPort = 9103
  Password = "MASKED-PASSWORD-TO-CONNECT-STORAGE-DAEMON"
  Device = VTLchgr
  Media Type = UTL3580-TD5
  Autochanger = yes
}