######### Director Director { Name = bacula-server-dir DIRport = 9101 QueryFile = "/opt/bacula/scripts/query.sql" WorkingDirectory = "/opt/bacula/working" PidDirectory = "/opt/bacula/working" Maximum Concurrent Jobs = 1 Password = "1234-director" Messages = Daemon } ######### Catalog Catalog { Name = MyCatalog DB Address = mysql-server DB Port = 3306 dbname = bacula dbuser = "bacula" password = "1234-mysql" } ######### Media pool Pool { Name = Default LabelFormat = "BackupVol" Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 365 days } ######### Storage device Storage { Name = File Address = bacula-server SDPort = 9103 Password = "1234-storagedaemon" Device = FileStorage Media Type = File } ######### Clients Client { Name = bacula-server-fd Address = bacula-server FDPort = 9102 Catalog = MyCatalog Password = "1234-bacula-server-fd" File Retention = 30 days Job Retention = 6 months AutoPrune = yes } Client { Name = bacula-client-linux-fd Address = bacula-client-linux FDPort = 9102 Catalog = MyCatalog Password = "1234-bacula-client-linux-fd" File Retention = 30 days Job Retention = 6 months AutoPrune = yes } Client { Name = bacula-client-win-fd Address = bacula-client-win FDPort = 9102 Catalog = MyCatalog Password = "1234-bacula-client-win-fd" File Retention = 30 days Job Retention = 6 months AutoPrune = yes } ######### File sets FileSet { Name = "Test Set Linux" Include { Options { signature = MD5 } File = /var/log } } FileSet { Name = "Test Set Windows" Include { Options { signature = MD5 IgnoreCase = yes } File = "c:/Documents and Settings" } } FileSet { Name = "Full Set Linux" Enable VSS = yes Include { Options { signature = MD5 } File = / } Exclude { File = /tmp File = /proc File = /var/lib/bacula File = /.journal File = /.fsck } } FileSet { Name = "Bacula Catalog" Include { Options { signature = MD5 } File = /opt/bacula/working/bacula.sql } } ######### Backup schedules Schedule { Name = "WeeklyCycle" Run = Full 1st sun at 1:00 Run = Differential 2nd-5th sun at 1:00 Run = Incremental mon-sat at 1:00 } Schedule { Name = "WeeklyCycleAfterBackup" Run = Full sun-sat at 2:10 } ######### Job definitions JobDefs { Name = "Default Job" Type = Backup Level = Incremental Schedule = "WeeklyCycle" Storage = File Messages = Standard Pool = Default Priority = 10 Write Bootstrap = "/opt/bacula/working/%c_%n.bsr" } ######### Jobs Job { Name = "Backup bacula-client-linux" Client = bacula-client-linux-fd JobDefs = "Default Job" FileSet = "Test Set Linux" } Job { Name = "Backup bacula-client-win" Client = bacula-client-win-fd JobDefs = "Default Job" FileSet = "Test Set Windows" } Job { Name = "Backup catalog" Client = bacula-server-fd JobDefs = "Default Job" Level = Full FileSet = "Bacula Catalog" Schedule = "WeeklyCycleAfterBackup" RunBeforeJob = "/opt/bacula/scripts/make_catalog_backup bacula bacula de-544.r542 10.34.195.201" RunAfterJob = "/opt/bacula/scripts/delete_catalog_backup" Priority = 11 } Job { Name = "Restore" Type = Restore Client = bacula-server-fd FileSet = "Bacula Catalog" Storage = File Pool = Default Messages = Standard # Where = /tmp/bacula-restores } ######### Messages 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.log" = all, !skipped catalog = all, !skipped, !saved } 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.log" = all, !skipped }