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 = @dirport@ # 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 = 10
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 @tmpdir@
38 Write Bootstrap = "@working_dir@/NightlySave.bsr"
39 Maximum Concurrent Jobs = 10
45 Client = @hostname1@-fd
46 FileSet = "@hostname1@-FileSet"
50 Write Bootstrap = "@working_dir@/NightlySave.bsr"
51 Maximum Concurrent Jobs = 10
57 Client = @hostname2@-fd
58 FileSet = "@hostname2@-FileSet"
62 Write Bootstrap = "@working_dir@/NightlySave.bsr"
63 Maximum Concurrent Jobs = 10
69 Client = @hostname3@-fd
70 FileSet = "@hostname3@-FileSet"
74 Write Bootstrap = "@working_dir@/NightlySave.bsr"
75 Maximum Concurrent Jobs = 10
88 Write Bootstrap = "@working_dir@/NightlySave.bsr"
95 Level = VolumeToCatalog
101 Write Bootstrap = "@working_dir@/NightlySave.bsr"
113 Write Bootstrap = "@working_dir@/NightlySave.bsr"
117 Name = "CompressedTest"
120 FileSet="CompressedSet"
124 Maximum Concurrent Jobs = 10
125 Write Bootstrap = "@working_dir@/NightlySave.bsr"
126 # Max Run Time = 15 seconds
130 Name = "SparseCompressedTest"
133 FileSet="SparseCompressedSet"
137 Write Bootstrap = "@working_dir@/NightlySave.bsr"
141 # Backup the catalog database (after the nightly save)
143 Name = "BackupCatalog"
147 # Schedule = "WeeklyCycleAfterBackup"
151 # This creates an ASCII copy of the catalog
152 RunBeforeJob = "@sbindir@/make_catalog_backup -u regress"
153 # This deletes the copy of the catalog
154 RunAfterJob = "@sbindir@/delete_catalog_backup"
155 Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
158 # Standard Restore template, to be changed by Console program
160 Name = "RestoreFiles"
167 Where = @tmpdir@/bacula-restores
171 # List of files to be backed up
174 Include { Options { signature=MD5 }
175 File = @hostname_files@
180 Name = "@hostname1@-FileSet"
181 Include { Options { signature=MD5 }
182 File = @hostname1_files@
187 Name = "@hostname2@-FileSet"
188 Include { Options { signature=MD5 }
189 File = @hostname2_files@
194 Name = "@hostname3@-FileSet"
195 Include { Options { signature=MD5 }
196 File = @hostname3_files@
202 Include { Options { signature=MD5; sparse=yes }
203 File=<@tmpdir@/file-list
208 Name = "CompressedSet"
210 Options { signature=MD5; compression=GZIP }
211 File =<@tmpdir@/file-list
216 Name = "SparseCompressedSet"
219 signature=MD5; compression=GZIP
221 File= <@tmpdir@/file-list
228 # When to do the backups, full backup on first sunday of the month,
229 # differential (i.e. incremental since full) every other sunday,
230 # and incremental backups other days
233 Run = Level=Full 1st sun at 1:05
234 Run = Level=Differential 2nd-5th sun at 1:05
235 Run = Level=Incremental mon-sat at 1:05
238 # This schedule does the catalog. It starts after the WeeklyCycle
240 Name = "WeeklyCycleAfterBackup"
241 Run = Level=Full sun-sat at 1:10
244 # This is the backup of the catalog
247 Include { Options { signature=MD5 }
248 File=/home/kern/bacula/regress/bin/working/bacula.sql
252 # Client (File Services) to backup
258 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
259 File Retention = 30d # 30 days
260 Job Retention = 180d # six months
261 AutoPrune = yes # Prune expired Jobs/Files
262 Maximum Concurrent Jobs = 10
266 Name = @hostname1@-fd
267 Address = @hostname1@
270 Password = "@hostname1_password@" # password for FileDaemon
271 File Retention = 30d # 30 days
272 Job Retention = 180d # six months
273 AutoPrune = yes # Prune expired Jobs/Files
274 Maximum Concurrent Jobs = 10
278 Name = @hostname2@-fd
279 Address = @hostname2@
282 Password = "@hostname2_password@" # password for FileDaemon
283 File Retention = 30d # 30 days
284 Job Retention = 180d # six months
285 AutoPrune = yes # Prune expired Jobs/Files
286 Maximum Concurrent Jobs = 10
290 Name = @hostname3@-fd
291 Address = @hostname3@
294 Password = "@hostname3_password@" # password for FileDaemon
295 File Retention = 30d # 30 days
296 Job Retention = 180d # six months
297 AutoPrune = yes # Prune expired Jobs/Files
298 Maximum Concurrent Jobs = 10
302 # Definiton of file storage device
305 Address = @hostname@ # N.B. Use a fully qualified name here
307 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
310 Maximum Concurrent Jobs = 10
315 Address = @hostname@ # N.B. Use a fully qualified name here
317 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
318 Device = FileStorage1
320 Maximum Concurrent Jobs = 10
324 # Generic catalog service
327 dbname = regress; user = regress; password = ""
330 # Reasonable message delivery -- send most everything to email address
334 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
335 operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
336 MailOnError = @job_email@ = all
337 operator = @job_email@ = mount
338 console = all, !skipped, !terminate, !restored
340 # WARNING! the following will create a file that you must cycle from
341 # time to time as it will grow indefinitely. However, it will
342 # also keep all your messages if the scroll off the console.
344 append = "@working_dir@/log" = all, !skipped
349 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
350 console = all, !skipped, !terminate
352 # WARNING! the following will create a file that you must cycle from
353 # time to time as it will grow indefinitely. However, it will
354 # also keep all your messages if the scroll off the console.
356 append = "@working_dir@/log" = all, !skipped
360 # Message delivery for daemon messages (no job).
363 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
364 mail = @job_email@ = all, !skipped
365 console = all, !skipped, !saved
366 append = "@working_dir@/log" = all, !skipped
369 # Default pool definition
373 Recycle = yes # Bacula can automatically recycle Volumes
374 AutoPrune = yes # Prune expired volumes
375 Volume Retention = 365d # one year