Director {
  Name = bacula-dir
  DIRport = 9101
  QueryFile = "/etc/bacula/query.sql"
  WorkingDirectory = "/var/spool/bacula"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 20
  Password = bacula-dir
  Messages = Daemon
}
#------------------------------------------------------------------------#
#  backup job list
#
Job {
  Enabled = yes
  Name = Backup-bacula-fd
  Type = Backup
  Client = bacula-fd
  FileSet = HomeDirectory
  Schedule = Weekly
  Storage = HPE-StoreEver-1-8-G2
  Messages = Standard
  Full Backup Pool = Full
  Incremental Backup Pool = Inc
  Pool = Full
  Write Bootstrap = "/var/spool/bacula/%c.bsr"
}
Job {
  Enabled = yes
  Name = Backup-nfs
  Type = Backup
  Client = nfs.sybyl.local
  FileSet = HomeDirectory
  Schedule = Weekly
  Storage = HPE-StoreEver-1-8-G2
  Messages = Standard
  Full Backup Pool = Full
  Incremental Backup Pool = Inc
  Pool = Full
  Write Bootstrap = "/var/spool/bacula/%c.bsr"
}
Job {
  Enabled = yes
  Name = BackupCatalog
  Type = Backup
  Client = bacula-fd
  Level = Full
  FileSet = Catalog
  Schedule = WeeklyCycleAfterBackup
  Storage = HPE-StoreEver-1-8-G2
  Messages = Standard
  Pool = Full
  RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup.pl MyCatalog"
  RunAfterJob  = "/usr/libexec/bacula/delete_catalog_backup"
  Write Bootstrap = "/var/spool/bacula/%n.bsr"
  Priority = 11                   # run after main backup
}
#------------------------------------------------------------------------#
Client {
  Name = bacula-fd
  Address = localhost
  FDPort = 9102
  Catalog = MyCatalog
  Password = bacula-fd
  File Retention = 60 days
  Job Retention = 6 months
  AutoPrune = yes
}
Client {
  Name = nfs.sybyl.local
  Address = nfs.sybyl.local
  FDPort = 9102
  Catalog = MyCatalog
  Password = bacula-fd
  File Retention = 60 days
  Job Retention = 6 months
  AutoPrune = yes
}
FileSet {
  Name = HomeDirectory
  Include {
    Options {
      signature = MD5
    }
    File = /home
  }
  Exclude {
    File = /home/tmp
    File = /home/sample
  }
}
FileSet {
  Name = Catalog
  Include {
    Options {
      signature = MD5
    }
    File = "/var/spool/bacula/bacula.sql"
  }
}
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 = Weekly
  Run = Full sun at 23:05
  Run = Incremental mon-sat at 23:05
}
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 23:10
}
Autochanger {
  Name = HPE-StoreEver-1-8-G2
  Address = vtl.sybyl.local
  SDPort = 9103
  Password = bacula-storage
  Device = HPE-StoreEver-1-8-G2
  Media Type = LTO-6
  Maximum Concurrent Jobs = 1
  Autochanger = yes
}
Catalog {
  Name = MyCatalog
  dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}
Pool {
  Name = Full
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 1 months
  Label Format = "Full-"
}
Pool {
  Name = Inc
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 62 days
  Label Format = "Inc-"
}
Pool {
  Name = Scratch
  Pool Type = Backup
}
Messages {
  Name = Daemon
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  mail = root@localhost = all, !skipped
  console = all, !skipped, !saved
  append = "/var/log/bacula/bacula.log" = all, !skipped
}
Messages {
  Name = Standard
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  mail = root@localhost = all, !skipped
  operator = root@localhost = mount
  console = all, !skipped, !saved
  append = "/var/log/bacula/bacula.log" = all, !skipped
  catalog = all
}
Console {
  Name = bacula-mon
  Password = "@@MON_DIR_PASSWORD@@"
  CommandACL = status, .status
}

トップ   編集 添付 複製 名前変更     ヘルプ   最終更新のRSS
Last-modified: 2018-05-17 (木) 15:56:39 (153d)