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 = 1
22 Password = "@dir_password@" # Console password
30 Client = @hostname@-fd
32 Schedule = "WeeklyCycle"
41 # Define the main nightly save backup job
42 # By default, this job will back up to disk in /tmp
45 JobDefs = "DefaultJob"
46 Write Bootstrap = "@working_dir@/Client1.bsr"
51 # Client = @hostname@2-fd
52 # JobDefs = "DefaultJob"
53 # Write Bootstrap = "@working_dir@/Client2.bsr"
56 # Backup the catalog database (after the nightly save)
58 Name = "BackupCatalog"
59 JobDefs = "DefaultJob"
62 Schedule = "WeeklyCycleAfterBackup"
63 # This creates an ASCII copy of the catalog
64 RunBeforeJob = "@scriptdir@/make_catalog_backup bacula bacula"
65 # This deletes the copy of the catalog
66 RunAfterJob = "@scriptdir@/delete_catalog_backup"
67 Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
68 Priority = 11 # run after main backup
72 # Standard Restore template, to be changed by Console program
73 # Only one such job is needed for all Jobs/Clients/Storage ...
83 Where = /tmp/bacula-restores
87 # List of files to be backed up
95 # Put your list of files here, preceded by 'File =', one per line
96 # or include an external list with:
100 # Note: / backs up everything on the root partition.
101 # if you have other partitons such as /usr or /home
102 # you will probably want to add them too.
104 # By default this is defined to point to the Bacula build
105 # directory to give a reasonable FileSet to backup to
106 # disk storage during initial testing.
112 # If you backup the root directory, the following two excluded
113 # files can be useful
124 # When to do the backups, full backup on first sunday of the month,
125 # differential (i.e. incremental since full) every other sunday,
126 # and incremental backups other days
129 Run = Full 1st sun at 23:05
130 Run = Differential 2nd-5th sun at 23:05
131 Run = Incremental mon-sat at 23:05
134 # This schedule does the catalog. It starts after the WeeklyCycle
136 Name = "WeeklyCycleAfterBackup"
137 Run = Full sun-sat at 23:10
140 # This is the backup of the catalog
147 File = @working_dir@/bacula.sql
151 # Client (File Services) to backup
157 Password = "@fd_password@" # password for FileDaemon
158 File Retention = 30 days # 30 days
159 Job Retention = 6 months # six months
160 AutoPrune = yes # Prune expired Jobs/Files
164 # Second Client (File Services) to backup
165 # You should change Name, Address, and Password before using
168 # Name = @hostname@2-fd
169 # Address = @hostname@2
171 # Catalog = MyCatalog
172 # Password = "@fd_password@2" # password for FileDaemon 2
173 # File Retention = 30 days # 30 days
174 # Job Retention = 6 months # six months
175 # AutoPrune = yes # Prune expired Jobs/Files
179 # Definition of file storage device
182 # Do not use "localhost" here
183 Address = @hostname@ # N.B. Use a fully qualified name here
185 Password = "@sd_password@"
192 # Definition of DDS tape storage device
195 # Do not use "localhost" here
196 # Address = @hostname@ # N.B. Use a fully qualified name here
198 # Password = "@sd_password@" # password for Storage daemon
199 # Device = DDS-4 # must be same as Device in Storage daemon
200 # Media Type = DDS-4 # must be same as MediaType in Storage daemon
201 # Autochanger = yes # enable for autochanger device
204 # Definition of 8mm tape storage device
207 # Do not use "localhost" here
208 # Address = @hostname@ # N.B. Use a fully qualified name here
210 # Password = "@sd_password@"
211 # Device = "Exabyte 8mm"
215 # Definition of DVD storage device
218 # Do not use "localhost" here
219 # Address = @hostname@ # N.B. Use a fully qualified name here
221 # Password = "@sd_password@"
222 # Device = "DVD Writer"
227 # Generic catalog service
230 dbname = bacula; user = bacula; password = ""
233 # Reasonable message delivery -- send most everything to email address
238 # NOTE! If you send to two email or more email addresses, you will need
239 # to replace the %r in the from field (-f part) with a single valid
240 # email address in both the mailcommand and the operatorcommand.
241 # What this does is, it sets the email address that emails would display
242 # in the FROM field, which is by default the same email as they're being
243 # sent to. However, if you send email to more than one address, then
244 # you'll have to set the FROM address manually, to a single address.
245 # for example, a 'no-reply@mydomain.com', is better since that tends to
246 # tell (most) people that its coming from an automated source.
249 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
250 operatorcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
251 mail = @job_email@ = all, !skipped
252 operator = @job_email@ = mount
253 console = all, !skipped, !saved
255 # WARNING! the following will create a file that you must cycle from
256 # time to time as it will grow indefinitely. However, it will
257 # also keep all your messages if they scroll off the console.
259 append = "@working_dir@/log" = all, !skipped
264 # Message delivery for daemon messages (no job).
267 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
268 mail = @job_email@ = all, !skipped
269 console = all, !skipped, !saved
270 append = "@working_dir@/log" = all, !skipped
276 # Default pool definition
280 Recycle = yes # Bacula can automatically recycle Volumes
281 AutoPrune = yes # Prune expired volumes
282 Volume Retention = 365 days # one year
286 # Restricted console used by tray-monitor to get the status of the director
289 Name = @hostname@-mon
290 Password = "@mon_dir_password@"
291 CommandACL = status, .status