# Configuration for the director for testing for the broken media bug. # Test written by Graham Keeling Director { # define myself Name = @hostname@-dir DIRPort = @dirport@ # where we listen for UA connections QueryFile = "@scriptdir@/query.sql" WorkingDirectory = "@working_dir@" PidDirectory = "@piddir@" SubSysDirectory = "@subsysdir@" PluginDirectory = "@sbindir@" Maximum Concurrent Jobs = 4 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password Messages = Standard } Job { Name = "First" Type = Backup Client=@hostname@-fd FileSet="Set1" Storage = File Messages = Standard Pool = Pool1 Write Bootstrap = "@working_dir@/NightlySave.bsr" Maximum Concurrent Jobs = 4 } Job { Name = "Second" Type = Backup Client=@hostname@-fd FileSet="Set2" Storage = File Messages = Standard Pool = Pool2 Write Bootstrap = "@working_dir@/NightlySave.bsr" Maximum Concurrent Jobs = 4 } # Standard Restore template, to be changed by Console program Job { Name = "RestoreFiles" Type = Restore Client=@hostname@-fd FileSet="Set1" Storage = File Messages = Standard Pool = Pool1 Where = @tmpdir@/bacula-restores } # List of files to be backed up FileSet { Name = "Set1" Include { Options { signature=MD5; } File = <@tmpdir@/file-list } } FileSet { Name = "Set2" Include { Options { signature=MD5; } File = <@tmpdir@/file-list } } # Client (File Services) to backup Client { Name = @hostname@-fd Address = @hostname@ FDPort = @fdport@ Catalog = MyCatalog Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon File Retention = 30d # 30 days Job Retention = 180d # six months AutoPrune = yes # Prune expired Jobs/Files Maximum Concurrent Jobs = 4 } # Definiton of file storage device Storage { Name = File Address = @hostname@ # N.B. Use a fully qualified name here SDPort = @sdport@ Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" Device = FileStorage Device = FileStorage1 Media Type = File Maximum Concurrent Jobs = 4 } # Generic catalog service Catalog { Name = MyCatalog dbname = @db_name@; user = @db_user@; password = "@db_password@" } # Reasonable message delivery -- send most everything to email address # and to the console Messages { Name = Standard mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r" operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) % r\" -s \"Regression: Intervention needed for %j\" %r" # MailOnError = @job_email@ = all # operator = @job_email@ = mount console = all, !skipped, !terminate, !restored # # WARNING! the following will create a file that you must cycle from # time to time as it will grow indefinitely. However, it will # also keep all your messages if the scroll off the console. # append = "@working_dir@/log" = all, !skipped catalog = all, !skipped } Pool { Name = "Scratch" Pool Type = Scratch Recycle = yes # automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 0 Maximum Volume Jobs = 1 Label Format = backup- Maximum Volumes = 0 # unlimited RecyclePool = Scratch } # Pool definitions Pool { Name = Pool1 Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365d # one year Maximum Volume Jobs = 1 Label Format = TestVolume Maximum Volumes = 0 RecyclePool = Scratch } Pool { Name = Pool2 Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365d # one year Maximum Volume Jobs = 1 Label Format = TestVolume Maximum Volumes = 0 RecyclePool = Scratch }