2 # Default Bacula Director Configuration file
4 # The only thing that MUST be changed is to add one or more
5 # file or directory names in the Include directive of the
8 # For Bacula release 2.2.2
10 # You might also want to change the default email address
11 # from root to your address. See the "mail" and "operator"
12 # directives in the Messages resource.
15 Director { # define myself
17 DIRport = 8101 # where we listen for UA connections
18 QueryFile = "@scriptdir@/query.sql"
19 WorkingDirectory = "@working_dir@"
20 PidDirectory = "@piddir@"
21 SubSysDirectory = "@subsysdir@"
22 Maximum Concurrent Jobs = 4
23 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password
28 # Define the main nightly save backup job
29 # By default, this job will back up to disk in /tmp
38 Write Bootstrap = "@working_dir@/NightlySave.bsr"
39 Maximum Concurrent Jobs = 4
45 Client = @hostname1@-fd
46 FileSet = "@hostname1@-FileSet"
50 Write Bootstrap = "@working_dir@/NightlySave.bsr"
51 Maximum Concurrent Jobs = 4
57 Client = @hostname2@-fd
58 FileSet = "@hostname2@-FileSet"
62 Write Bootstrap = "@working_dir@/NightlySave.bsr"
63 Maximum Concurrent Jobs = 4
69 Client = @hostname3@-fd
70 FileSet = "@hostname3@-FileSet"
74 Write Bootstrap = "@working_dir@/NightlySave.bsr"
75 Maximum Concurrent Jobs = 4
88 Write Bootstrap = "@working_dir@/NightlySave.bsr"
89 Maximum Concurrent Jobs = 4
102 Write Bootstrap = "@working_dir@/NightlySave.bsr"
107 Name = "VerifyVolume"
109 Level = VolumeToCatalog
115 Write Bootstrap = "@working_dir@/NightlySave.bsr"
127 Write Bootstrap = "@working_dir@/NightlySave.bsr"
131 Name = "CompressedTest"
134 FileSet="CompressedSet"
138 Maximum Concurrent Jobs = 4
139 Write Bootstrap = "@working_dir@/NightlySave.bsr"
140 # Max Run Time = 15 seconds
144 Name = "SparseCompressedTest"
147 FileSet="SparseCompressedSet"
151 Write Bootstrap = "@working_dir@/NightlySave.bsr"
155 # Backup the catalog database (after the nightly save)
157 Name = "BackupCatalog"
161 # Schedule = "WeeklyCycleAfterBackup"
165 # This creates an ASCII copy of the catalog
166 RunBeforeJob = "@sbindir@/make_catalog_backup -u regress"
167 # This deletes the copy of the catalog
168 RunAfterJob = "@sbindir@/delete_catalog_backup"
169 Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
172 # Standard Restore template, to be changed by Console program
174 Name = "RestoreFiles"
181 Where = /tmp/bacula-restores
185 # List of files to be backed up
188 Include { Options { signature=MD5 }
189 File = </tmp/file-list
194 Name = "@hostname1@-FileSet"
195 Include { Options { signature=MD5 }
196 File = @hostname1_files@
201 Name = "@hostname2@-FileSet"
202 Include { Options { signature=MD5 }
203 File = @hostname2_files@
208 Name = "@hostname3@-FileSet"
209 Include { Options { signature=MD5 }
210 File = @hostname3_files@
216 Include { Options { signature=MD5; sparse=yes }
222 Name = "CompressedSet"
224 Options { signature=MD5; compression=GZIP }
225 File =</tmp/file-list
230 Name = "SparseCompressedSet"
233 signature=MD5; compression=GZIP
235 File= </tmp/file-list
242 # When to do the backups, full backup on first sunday of the month,
243 # differential (i.e. incremental since full) every other sunday,
244 # and incremental backups other days
247 Run = Level=Full 1st sun at 1:05
248 Run = Level=Differential 2nd-5th sun at 1:05
249 Run = Level=Incremental mon-sat at 1:05
252 # This schedule does the catalog. It starts after the WeeklyCycle
254 Name = "WeeklyCycleAfterBackup"
255 Run = Level=Full sun-sat at 1:10
258 # This is the backup of the catalog
261 Include { Options { signature=MD5 }
262 File=/home/kern/bacula/regress/bin/working/bacula.sql
266 # Client (File Services) to backup
272 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
273 File Retention = 30d # 30 days
274 Job Retention = 180d # six months
275 AutoPrune = yes # Prune expired Jobs/Files
276 Maximum Concurrent Jobs = 4
280 Name = @hostname1@-fd
281 Address = @hostname1@
284 Password = "@hostname1_password@" # password for FileDaemon
285 File Retention = 30d # 30 days
286 Job Retention = 180d # six months
287 AutoPrune = yes # Prune expired Jobs/Files
288 Maximum Concurrent Jobs = 4
292 Name = @hostname2@-fd
293 Address = @hostname2@
296 Password = "@hostname2_password@" # password for FileDaemon
297 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
298 File Retention = 30d # 30 days
299 Job Retention = 180d # six months
300 AutoPrune = yes # Prune expired Jobs/Files
301 Maximum Concurrent Jobs = 4
305 Name = @hostname3@-fd
306 Address = @hostname3@
309 Password = "@hostname3_password@" # password for FileDaemon
310 File Retention = 30d # 30 days
311 Job Retention = 180d # six months
312 AutoPrune = yes # Prune expired Jobs/Files
313 Maximum Concurrent Jobs = 4
317 # Definiton of file storage device
320 Address = @hostname@ # N.B. Use a fully qualified name here
322 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
325 Maximum Concurrent Jobs = 4
330 Address = @hostname@ # N.B. Use a fully qualified name here
332 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
333 Device = FileStorage1
335 Maximum Concurrent Jobs = 4
339 # Generic catalog service
342 dbname = regress; user = regress; password = ""
345 # Reasonable message delivery -- send most everything to email address
349 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
350 operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
351 MailOnError = @job_email@ = all
352 operator = @job_email@ = mount
353 console = all, !skipped, !terminate, !restored
355 # WARNING! the following will create a file that you must cycle from
356 # time to time as it will grow indefinitely. However, it will
357 # also keep all your messages if the scroll off the console.
359 append = "@working_dir@/log" = all, !skipped
364 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
365 console = all, !skipped, !terminate
367 # WARNING! the following will create a file that you must cycle from
368 # time to time as it will grow indefinitely. However, it will
369 # also keep all your messages if the scroll off the console.
371 append = "@working_dir@/log" = all, !skipped
375 # Message delivery for daemon messages (no job).
378 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
379 mail = @job_email@ = all, !skipped
380 console = all, !skipped, !saved
381 append = "@working_dir@/log" = all, !skipped
384 # Default pool definition
388 Recycle = yes # Bacula can automatically recycle Volumes
389 AutoPrune = yes # Prune expired volumes
390 Volume Retention = 365d # one year