# TODO # Orphaned buffer: localhost-dir 40 bytes buf=80e9a70 allocated at dird_conf.c:1338 # bacula-dir: dird.c:656 Hey something is wrong. p=0x135174768 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@" Maximum Concurrent Jobs = 4 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password Messages = Standard } Job { Name = "backup" Type = Backup Level = Full Client = @hostname@-fd FileSet = FS_TESTJOB Storage = File Messages = Standard Pool = Default Priority = 10 Maximum Concurrent Jobs = 16 } FileSet { Name = FS_TESTJOB Include { File=<@tmpdir@/file-list } } JobDefs { Name = "DefaultRestore" Type = Restore Storage = File Client=@hostname@-fd FileSet="FS_TESTJOB" Messages = Standard Pool = Default Replace = Always } Job { Name = JobA JobDefs = DefaultRestore RegexWhere = !po$!old.po! } Job { Name = JobB JobDefs = DefaultRestore add prefix = @tmpdir@/bacula-restore add suffix = .old strip prefix = /build } Job { Name = JobC JobDefs = DefaultRestore Where = @tmpdir@/bacula-restore } Job { Name = JobD JobDefs = DefaultRestore RegexWhere = "doesnt work" } Job { Name = JobE JobDefs = DefaultRestore RegexWhere = "/BUILD/tmp/i,!/po/!/!" } Job { Name = JobF JobDefs = DefaultRestore RegexWhere = "/something witch doesn't match/tmp/i" } Job { Name = JobG JobDefs = DefaultRestore Where = @tmpdir@/bacula-restore } # 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 Media Type = File Maximum Concurrent Jobs = 4 } # Generic catalog service Catalog { Name = MyCatalog @libdbi@ dbname = @db_name@; user = @db_user@; password = "@db_password@" } Messages { Name = Standard console = all, !skipped, !saved catalog = all, !skipped } # Default pool definition Pool { Name = Default Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365d # one year }