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
51 Write Bootstrap = "@working_dir@/NightlySave.bsr"
58 Level = VolumeToCatalog
64 Write Bootstrap = "@working_dir@/NightlySave.bsr"
76 Write Bootstrap = "@working_dir@/NightlySave.bsr"
80 Name = "CompressedTest"
83 FileSet="CompressedSet"
87 Maximum Concurrent Jobs = 4
88 Write Bootstrap = "@working_dir@/NightlySave.bsr"
89 # Max Run Time = 15 seconds
93 Name = "SparseCompressedTest"
96 FileSet="SparseCompressedSet"
100 Write Bootstrap = "@working_dir@/NightlySave.bsr"
104 # Backup the catalog database (after the nightly save)
106 Name = "BackupCatalog"
110 # Schedule = "WeeklyCycleAfterBackup"
114 # This creates an ASCII copy of the catalog
115 RunBeforeJob = "@sbindir@/make_catalog_backup -u regress"
116 # This deletes the copy of the catalog
117 RunAfterJob = "@sbindir@/delete_catalog_backup"
118 Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
121 # Standard Restore template, to be changed by Console program
123 Name = "RestoreFiles"
130 Where = @tmpdir@/bacula-restores
134 # List of files to be backed up
137 Include { Options { signature=MD5 }
138 File = <@tmpdir@/file-list
144 Include { Options { signature=MD5; sparse=yes }
145 File=<@tmpdir@/file-list
150 Name = "CompressedSet"
152 Options { signature=MD5; compression=GZIP }
153 File =<@tmpdir@/file-list
158 Name = "SparseCompressedSet"
161 signature=MD5; compression=GZIP
163 File= <@tmpdir@/file-list
170 # When to do the backups, full backup on first sunday of the month,
171 # differential (i.e. incremental since full) every other sunday,
172 # and incremental backups other days
175 Run = Level=Full 1st sun at 1:05
176 Run = Level=Differential 2nd-5th sun at 1:05
177 Run = Level=Incremental mon-sat at 1:05
180 # This schedule does the catalog. It starts after the WeeklyCycle
182 Name = "WeeklyCycleAfterBackup"
183 Run = Level=Full sun-sat at 1:10
186 # This is the backup of the catalog
189 Include { Options { signature=MD5 }
190 File=/home/kern/bacula/regress/bin/working/bacula.sql
194 # Client (File Services) to backup
200 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
201 File Retention = 30d # 30 days
202 Job Retention = 180d # six months
203 AutoPrune = yes # Prune expired Jobs/Files
204 Maximum Concurrent Jobs = 4
207 # Definiton of file storage device
210 Address = @hostname@ # N.B. Use a fully qualified name here
212 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
215 Maximum Concurrent Jobs = 4
220 Address = @hostname@ # N.B. Use a fully qualified name here
222 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
223 Device = FileStorage1
225 Maximum Concurrent Jobs = 4
229 # Definition of DLT tape storage device
232 # Address = @hostname@ # N.B. Use a fully qualified name here
234 # Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon
235 # Device = "HP DLT 80" # must be same as Device in Storage daemon
236 # Media Type = DLT8000 # must be same as MediaType in Storage daemon
239 # Definition of DDS tape storage device
242 # Address = @hostname@ # N.B. Use a fully qualified name here
244 # Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon
245 # Device = SDT-10000 # must be same as Device in Storage daemon
246 # Media Type = DDS-4 # must be same as MediaType in Storage daemon
249 # Definition of 8mm tape storage device
252 # Address = @hostname@ # N.B. Use a fully qualified name here
254 # Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
255 # Device = "Exabyte 8mm"
260 # Generic catalog service
264 dbname = @db_name@; user = @db_user@; password = "@db_password@"
267 # Reasonable message delivery -- send most everything to email address
271 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
272 operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
273 # MailOnError = @job_email@ = all
274 # operator = @job_email@ = mount
275 console = all, !skipped, !terminate, !restored
277 # WARNING! the following will create a file that you must cycle from
278 # time to time as it will grow indefinitely. However, it will
279 # also keep all your messages if the scroll off the console.
281 append = "@working_dir@/log" = all, !skipped
286 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
287 console = all, !skipped, !terminate
289 # WARNING! the following will create a file that you must cycle from
290 # time to time as it will grow indefinitely. However, it will
291 # also keep all your messages if the scroll off the console.
293 append = "@working_dir@/log" = all, !skipped
297 # Message delivery for daemon messages (no job).
300 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
301 # mail = @job_email@ = all, !skipped
302 console = all, !skipped, !saved
303 append = "@working_dir@/log" = all, !skipped
306 # Default pool definition
310 Recycle = yes # Bacula can automatically recycle Volumes
311 AutoPrune = yes # Prune expired volumes
312 Volume Retention = 365d # one year