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 = 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 @tmpdir@
38 Write Bootstrap = "@working_dir@/NightlySave.bsr"
39 Maximum Concurrent Jobs = 4
52 Write Bootstrap = "@working_dir@/NightlySave.bsr"
60 Level = VolumeToCatalog
66 Write Bootstrap = "@working_dir@/NightlySave.bsr"
79 Write Bootstrap = "@working_dir@/NightlySave.bsr"
84 Name = "CompressedTest"
87 FileSet="CompressedSet"
91 Maximum Concurrent Jobs = 4
92 Write Bootstrap = "@working_dir@/NightlySave.bsr"
94 # Max Run Time = 15 seconds
98 Name = "SparseCompressedTest"
101 FileSet="SparseCompressedSet"
105 Write Bootstrap = "@working_dir@/NightlySave.bsr"
110 # Backup the catalog database (after the nightly save)
112 Name = "BackupCatalog"
116 # Schedule = "WeeklyCycleAfterBackup"
120 # This creates an ASCII copy of the catalog
121 RunBeforeJob = "@sbindir@/make_catalog_backup -u regress"
122 # This deletes the copy of the catalog
123 RunAfterJob = "@sbindir@/delete_catalog_backup"
124 Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
128 # Standard Restore template, to be changed by Console program
130 Name = "RestoreFiles"
137 Where = @tmpdir@/bacula-restores
142 # List of files to be backed up
145 Include { Options { signature=MD5 }
146 File = <@tmpdir@/file-list
152 Include { Options { signature=MD5; sparse=yes }
153 File=<@tmpdir@/file-list
158 Name = "CompressedSet"
160 Options { signature=MD5; compression=GZIP }
161 File =<@tmpdir@/file-list
166 Name = "SparseCompressedSet"
169 signature=MD5; compression=GZIP
171 File= <@tmpdir@/file-list
178 # When to do the backups, full backup on first sunday of the month,
179 # differential (i.e. incremental since full) every other sunday,
180 # and incremental backups other days
183 Run = Level=Full 1st sun at 1:05
184 Run = Level=Differential 2nd-5th sun at 1:05
185 Run = Level=Incremental mon-sat at 1:05
188 # This schedule does the catalog. It starts after the WeeklyCycle
190 Name = "WeeklyCycleAfterBackup"
191 Run = Level=Full sun-sat at 1:10
194 # This is the backup of the catalog
197 Include { Options { signature=MD5 }
198 File=/home/kern/bacula/regress/bin/working/bacula.sql
202 # Client (File Services) to backup
208 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
209 File Retention = 30d # 30 days
210 Job Retention = 180d # six months
211 AutoPrune = yes # Prune expired Jobs/Files
212 Maximum Concurrent Jobs = 4
215 # Definiton of file storage device
218 Address = @hostname@ # N.B. Use a fully qualified name here
220 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
223 Maximum Concurrent Jobs = 4
228 Address = @hostname@ # N.B. Use a fully qualified name here
230 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
231 Device = FileStorage1
233 Maximum Concurrent Jobs = 4
237 # Definition of DLT tape storage device
240 # Address = @hostname@ # N.B. Use a fully qualified name here
242 # Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon
243 # Device = "HP DLT 80" # must be same as Device in Storage daemon
244 # Media Type = DLT8000 # must be same as MediaType in Storage daemon
247 # Definition of DDS tape storage device
250 # Address = @hostname@ # N.B. Use a fully qualified name here
252 # Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon
253 # Device = SDT-10000 # must be same as Device in Storage daemon
254 # Media Type = tape # must be same as MediaType in Storage daemon
257 # Definition of 8mm tape storage device
260 # Address = @hostname@ # N.B. Use a fully qualified name here
262 # Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
263 # Device = "Exabyte 8mm"
268 # Generic catalog service
272 dbname = @db_name@; user = @db_user@; password = "@db_password@"
275 # Reasonable message delivery -- send most everything to email address
279 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
280 operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
281 # MailOnError = @job_email@ = all
282 # operator = @job_email@ = mount
283 console = all, !skipped, !terminate, !restored
285 # WARNING! the following will create a file that you must cycle from
286 # time to time as it will grow indefinitely. However, it will
287 # also keep all your messages if the scroll off the console.
289 append = "@working_dir@/log" = all, !skipped
290 catalog = all, !skipped
295 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
296 console = all, !skipped, !terminate
298 # WARNING! the following will create a file that you must cycle from
299 # time to time as it will grow indefinitely. However, it will
300 # also keep all your messages if the scroll off the console.
302 append = "@working_dir@/log" = all, !skipped
303 catalog = all, !skipped
307 # Message delivery for daemon messages (no job).
310 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
311 # mail = @job_email@ = all, !skipped
312 console = all, !skipped, !saved
313 append = "@working_dir@/log" = all, !skipped
316 # Default pool definition
320 Recycle = yes # Bacula can automatically recycle Volumes
321 AutoPrune = yes # Prune expired volumes
322 Volume Retention = 365d # one year