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 @VERSION@ (@DATE@) -- @DISTNAME@ @DISTVER@
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.
14 # Copyright (C) 2000-2017 Kern Sibbald
15 # License: BSD 2-Clause; see file LICENSE-FOSS
18 Director { # define myself
20 DIRport = @dir_port@ # where we listen for UA connections
21 QueryFile = "@scriptdir@/query.sql"
22 WorkingDirectory = "@working_dir@"
23 PidDirectory = "@piddir@"
24 Maximum Concurrent Jobs = 20
25 Password = "@dir_password@" # Console password
33 Client = @basename@-fd
35 Schedule = "WeeklyCycle"
41 Write Bootstrap = "@working_dir@/%c.bsr"
46 # Define the main nightly save backup job
47 # By default, this job will back up to disk in @archivedir@
49 Name = "BackupClient1"
50 JobDefs = "DefaultJob"
54 # Name = "BackupClient2"
55 # Client = @basename@2-fd
56 # JobDefs = "DefaultJob"
60 # Name = "BackupClient1-to-Tape"
61 # JobDefs = "DefaultJob"
63 # Spool Data = yes # Avoid shoe-shine
69 # Backup the catalog database (after the nightly save)
71 Name = "BackupCatalog"
72 JobDefs = "DefaultJob"
75 Schedule = "WeeklyCycleAfterBackup"
76 # This creates an ASCII copy of the catalog
77 # Arguments to make_catalog_backup.pl are:
78 # make_catalog_backup.pl <catalog-name>
79 RunBeforeJob = "@scriptdir@/make_catalog_backup.pl MyCatalog"
80 # This deletes the copy of the catalog
81 RunAfterJob = "@scriptdir@/delete_catalog_backup"
82 Write Bootstrap = "@working_dir@/%n.bsr"
83 Priority = 11 # run after main backup
87 # Standard Restore template, to be changed by Console program
88 # Only one such job is needed for all Jobs/Clients/Storage ...
95 # The FileSet and Pool directives are not used by Restore Jobs
96 # but must not be removed
100 Where = @archivedir@/bacula-restores
104 # List of files to be backed up
112 # Put your list of files here, preceded by 'File =', one per line
113 # or include an external list with:
117 # Note: / backs up everything on the root partition.
118 # if you have other partitions such as /usr or /home
119 # you will probably want to add them too.
121 # By default this is defined to point to the Bacula binary
122 # directory to give a reasonable FileSet to backup to
123 # disk storage during initial testing.
129 # If you backup the root directory, the following two excluded
130 # files can be useful
144 # When to do the backups, full backup on first sunday of the month,
145 # differential (i.e. incremental since full) every other sunday,
146 # and incremental backups other days
149 Run = Full 1st sun at 23:05
150 Run = Differential 2nd-5th sun at 23:05
151 Run = Incremental mon-sat at 23:05
154 # This schedule does the catalog. It starts after the WeeklyCycle
156 Name = "WeeklyCycleAfterBackup"
157 Run = Full sun-sat at 23:10
160 # This is the backup of the catalog
167 File = "@working_dir@/@db_name@.sql"
171 # Client (File Services) to backup
177 Password = "@fd_password@" # password for FileDaemon
178 File Retention = 60 days # 60 days
179 Job Retention = 6 months # six months
180 AutoPrune = yes # Prune expired Jobs/Files
184 # Second Client (File Services) to backup
185 # You should change Name, Address, and Password before using
188 # Name = @basename@2-fd
189 # Address = @hostname@2
191 # Catalog = MyCatalog
192 # Password = "@fd_password@2" # password for FileDaemon 2
193 # File Retention = 60 days # 60 days
194 # Job Retention = 6 months # six months
195 # AutoPrune = yes # Prune expired Jobs/Files
199 # Definition of file Virtual Autochanger device
202 # Do not use "localhost" here
203 Address = @hostname@ # N.B. Use a fully qualified name here
205 Password = "@sd_password@"
208 Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time
209 Autochanger = File1 # point to ourself
212 # Definition of a second file Virtual Autochanger device
213 # Possibly pointing to a different disk drive
216 # Do not use "localhost" here
217 Address = @hostname@ # N.B. Use a fully qualified name here
219 Password = "@sd_password@"
222 Autochanger = File2 # point to ourself
223 Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time
226 # Definition of LTO-4 tape Autochanger device
229 # Do not use "localhost" here
230 # Address = @hostname@ # N.B. Use a fully qualified name here
232 # Password = "@sd_password@" # password for Storage daemon
233 # Device = LTO-4 # must be same as Device in Storage daemon
234 # Media Type = LTO-4 # must be same as MediaType in Storage daemon
235 # Autochanger = LTO-4 # enable for autochanger device
236 # Maximum Concurrent Jobs = 10
239 # Generic catalog service
242 dbname = "@db_name@"; dbuser = "@db_user@"; dbpassword = "@db_password@"
245 # Reasonable message delivery -- send most everything to email address
250 # NOTE! If you send to two email or more email addresses, you will need
251 # to replace the %r in the from field (-f part) with a single valid
252 # email address in both the mailcommand and the operatorcommand.
253 # What this does is, it sets the email address that emails would display
254 # in the FROM field, which is by default the same email as they're being
255 # sent to. However, if you send email to more than one address, then
256 # you'll have to set the FROM address manually, to a single address.
257 # for example, a 'no-reply@mydomain.com', is better since that tends to
258 # tell (most) people that its coming from an automated source.
261 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
262 operatorcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
263 mail = @job_email@ = all, !skipped
264 operator = @job_email@ = mount
265 console = all, !skipped, !saved
267 # WARNING! the following will create a file that you must cycle from
268 # time to time as it will grow indefinitely. However, it will
269 # also keep all your messages if they scroll off the console.
271 append = "@logdir@/bacula.log" = all, !skipped
277 # Message delivery for daemon messages (no job).
280 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
281 mail = @job_email@ = all, !skipped
282 console = all, !skipped, !saved
283 append = "@logdir@/bacula.log" = all, !skipped
286 # Default pool definition
290 Recycle = yes # Bacula can automatically recycle Volumes
291 AutoPrune = yes # Prune expired volumes
292 Volume Retention = 365 days # one year
293 Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
294 Maximum Volumes = 100 # Limit number of Volumes in Pool
297 # File Pool definition
301 Recycle = yes # Bacula can automatically recycle Volumes
302 AutoPrune = yes # Prune expired volumes
303 Volume Retention = 365 days # one year
304 Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
305 Maximum Volumes = 100 # Limit number of Volumes in Pool
306 Label Format = "Vol-" # Auto label
310 # Scratch pool definition
317 # Restricted console used by tray-monitor to get the status of the director
320 Name = @basename@-mon
321 Password = "@mon_dir_password@"
322 CommandACL = status, .status