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.
15 Director { # define myself
17 DIRport = @dir_port@ # where we listen for UA connections
18 QueryFile = "@scriptdir@/query.sql"
19 WorkingDirectory = "@working_dir@"
20 PidDirectory = "@piddir@"
21 Maximum Concurrent Jobs = 20
22 Password = "@dir_password@" # Console password
30 Client = @basename@-fd
32 Schedule = "WeeklyCycle"
38 Write Bootstrap = "@working_dir@/%c.bsr"
43 # Define the main nightly save backup job
44 # By default, this job will back up to disk in @archivedir@
46 Name = "BackupClient1"
47 JobDefs = "DefaultJob"
51 # Name = "BackupClient2"
52 # Client = @basename@2-fd
53 # JobDefs = "DefaultJob"
57 # Name = "BackupClient1-to-Tape"
58 # JobDefs = "DefaultJob"
60 # Spool Data = yes # Avoid shoe-shine
66 # Backup the catalog database (after the nightly save)
68 Name = "BackupCatalog"
69 JobDefs = "DefaultJob"
72 Schedule = "WeeklyCycleAfterBackup"
73 # This creates an ASCII copy of the catalog
74 # Arguments to make_catalog_backup.pl are:
75 # make_catalog_backup.pl <catalog-name>
76 RunBeforeJob = "@scriptdir@/make_catalog_backup.pl MyCatalog"
77 # This deletes the copy of the catalog
78 RunAfterJob = "@scriptdir@/delete_catalog_backup"
79 Write Bootstrap = "@working_dir@/%n.bsr"
80 Priority = 11 # run after main backup
84 # Standard Restore template, to be changed by Console program
85 # Only one such job is needed for all Jobs/Clients/Storage ...
95 Where = @archivedir@/bacula-restores
99 # List of files to be backed up
107 # Put your list of files here, preceded by 'File =', one per line
108 # or include an external list with:
112 # Note: / backs up everything on the root partition.
113 # if you have other partitions such as /usr or /home
114 # you will probably want to add them too.
116 # By default this is defined to point to the Bacula binary
117 # directory to give a reasonable FileSet to backup to
118 # disk storage during initial testing.
124 # If you backup the root directory, the following two excluded
125 # files can be useful
139 # When to do the backups, full backup on first sunday of the month,
140 # differential (i.e. incremental since full) every other sunday,
141 # and incremental backups other days
144 Run = Full 1st sun at 23:05
145 Run = Differential 2nd-5th sun at 23:05
146 Run = Incremental mon-sat at 23:05
149 # This schedule does the catalog. It starts after the WeeklyCycle
151 Name = "WeeklyCycleAfterBackup"
152 Run = Full sun-sat at 23:10
155 # This is the backup of the catalog
162 File = "@working_dir@/@db_name@.sql"
166 # Client (File Services) to backup
172 Password = "@fd_password@" # password for FileDaemon
173 File Retention = 60 days # 60 days
174 Job Retention = 6 months # six months
175 AutoPrune = yes # Prune expired Jobs/Files
179 # Second Client (File Services) to backup
180 # You should change Name, Address, and Password before using
183 # Name = @basename@2-fd
184 # Address = @hostname@2
186 # Catalog = MyCatalog
187 # Password = "@fd_password@2" # password for FileDaemon 2
188 # File Retention = 60 days # 60 days
189 # Job Retention = 6 months # six months
190 # AutoPrune = yes # Prune expired Jobs/Files
194 # Definition of file Virtual Autochanger device
197 # Do not use "localhost" here
198 Address = @hostname@ # N.B. Use a fully qualified name here
200 Password = "@sd_password@"
203 Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time
206 # Definition of a second file Virtual Autochanger device
207 # Possibly pointing to a different disk drive
210 # Do not use "localhost" here
211 Address = @hostname@ # N.B. Use a fully qualified name here
213 Password = "@sd_password@"
216 Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time
219 # Definition of LTO-4 tape Autochanger device
222 # Do not use "localhost" here
223 # Address = @hostname@ # N.B. Use a fully qualified name here
225 # Password = "@sd_password@" # password for Storage daemon
226 # Device = LTO-4 # must be same as Device in Storage daemon
227 # Media Type = LTO-4 # must be same as MediaType in Storage daemon
228 # Maximum Concurrent Jobs = 10
231 # Generic catalog service
234 dbname = "@db_name@"; dbuser = "@db_user@"; dbpassword = "@db_password@"
237 # Reasonable message delivery -- send most everything to email address
242 # NOTE! If you send to two email or more email addresses, you will need
243 # to replace the %r in the from field (-f part) with a single valid
244 # email address in both the mailcommand and the operatorcommand.
245 # What this does is, it sets the email address that emails would display
246 # in the FROM field, which is by default the same email as they're being
247 # sent to. However, if you send email to more than one address, then
248 # you'll have to set the FROM address manually, to a single address.
249 # for example, a 'no-reply@mydomain.com', is better since that tends to
250 # tell (most) people that its coming from an automated source.
253 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
254 operatorcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
255 mail = @job_email@ = all, !skipped
256 operator = @job_email@ = mount
257 console = all, !skipped, !saved
259 # WARNING! the following will create a file that you must cycle from
260 # time to time as it will grow indefinitely. However, it will
261 # also keep all your messages if they scroll off the console.
263 append = "@logdir@/bacula.log" = all, !skipped
269 # Message delivery for daemon messages (no job).
272 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
273 mail = @job_email@ = all, !skipped
274 console = all, !skipped, !saved
275 append = "@logdir@/bacula.log" = all, !skipped
278 # Default pool definition
282 Recycle = yes # Bacula can automatically recycle Volumes
283 AutoPrune = yes # Prune expired volumes
284 Volume Retention = 365 days # one year
285 Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
286 Maximum Volumes = 100 # Limit number of Volumes in Pool
289 # File Pool definition
293 Recycle = yes # Bacula can automatically recycle Volumes
294 AutoPrune = yes # Prune expired volumes
295 Volume Retention = 365 days # one year
296 Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
297 Maximum Volumes = 100 # Limit number of Volumes in Pool
298 Label Format = "Vol-" # Auto label
302 # Scratch pool definition
309 # Restricted console used by tray-monitor to get the status of the director
312 Name = @basename@-mon
313 Password = "@mon_dir_password@"
314 CommandACL = status, .status