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 @archivedir@
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 # WARNING!!! Passing the password via the command line is insecure.
65 # see comments in make_catalog_backup for details.
66 RunBeforeJob = "@scriptdir@/make_catalog_backup bacula bacula"
67 # This deletes the copy of the catalog
68 RunAfterJob = "@scriptdir@/delete_catalog_backup"
69 Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
70 Priority = 11 # run after main backup
74 # Standard Restore template, to be changed by Console program
75 # Only one such job is needed for all Jobs/Clients/Storage ...
85 Where = @archivedir@/bacula-restores
89 # List of files to be backed up
97 # Put your list of files here, preceded by 'File =', one per line
98 # or include an external list with:
102 # Note: / backs up everything on the root partition.
103 # if you have other partitons such as /usr or /home
104 # you will probably want to add them too.
106 # By default this is defined to point to the Bacula build
107 # directory to give a reasonable FileSet to backup to
108 # disk storage during initial testing.
114 # If you backup the root directory, the following two excluded
115 # files can be useful
126 # When to do the backups, full backup on first sunday of the month,
127 # differential (i.e. incremental since full) every other sunday,
128 # and incremental backups other days
131 Run = Full 1st sun at 23:05
132 Run = Differential 2nd-5th sun at 23:05
133 Run = Incremental mon-sat at 23:05
136 # This schedule does the catalog. It starts after the WeeklyCycle
138 Name = "WeeklyCycleAfterBackup"
139 Run = Full sun-sat at 23:10
142 # This is the backup of the catalog
149 File = @working_dir@/bacula.sql
153 # Client (File Services) to backup
159 Password = "@fd_password@" # password for FileDaemon
160 File Retention = 30 days # 30 days
161 Job Retention = 6 months # six months
162 AutoPrune = yes # Prune expired Jobs/Files
166 # Second Client (File Services) to backup
167 # You should change Name, Address, and Password before using
170 # Name = @hostname@2-fd
171 # Address = @hostname@2
173 # Catalog = MyCatalog
174 # Password = "@fd_password@2" # password for FileDaemon 2
175 # File Retention = 30 days # 30 days
176 # Job Retention = 6 months # six months
177 # AutoPrune = yes # Prune expired Jobs/Files
181 # Definition of file storage device
184 # Do not use "localhost" here
185 Address = @hostname@ # N.B. Use a fully qualified name here
187 Password = "@sd_password@"
194 # Definition of DDS tape storage device
197 # Do not use "localhost" here
198 # Address = @hostname@ # N.B. Use a fully qualified name here
200 # Password = "@sd_password@" # password for Storage daemon
201 # Device = DDS-4 # must be same as Device in Storage daemon
202 # Media Type = DDS-4 # must be same as MediaType in Storage daemon
203 # Autochanger = yes # enable for autochanger device
206 # Definition of 8mm tape storage device
209 # Do not use "localhost" here
210 # Address = @hostname@ # N.B. Use a fully qualified name here
212 # Password = "@sd_password@"
213 # Device = "Exabyte 8mm"
217 # Definition of DVD storage device
220 # Do not use "localhost" here
221 # Address = @hostname@ # N.B. Use a fully qualified name here
223 # Password = "@sd_password@"
224 # Device = "DVD Writer"
229 # Generic catalog service
232 dbname = @db_name@; user = @db_user@; password = ""
235 # Reasonable message delivery -- send most everything to email address
240 # NOTE! If you send to two email or more email addresses, you will need
241 # to replace the %r in the from field (-f part) with a single valid
242 # email address in both the mailcommand and the operatorcommand.
243 # What this does is, it sets the email address that emails would display
244 # in the FROM field, which is by default the same email as they're being
245 # sent to. However, if you send email to more than one address, then
246 # you'll have to set the FROM address manually, to a single address.
247 # for example, a 'no-reply@mydomain.com', is better since that tends to
248 # tell (most) people that its coming from an automated source.
251 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
252 operatorcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
253 mail = @job_email@ = all, !skipped
254 operator = @job_email@ = mount
255 console = all, !skipped, !saved
257 # WARNING! the following will create a file that you must cycle from
258 # time to time as it will grow indefinitely. However, it will
259 # also keep all your messages if they scroll off the console.
261 append = "@working_dir@/log" = all, !skipped
266 # Message delivery for daemon messages (no job).
269 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
270 mail = @job_email@ = all, !skipped
271 console = all, !skipped, !saved
272 append = "@working_dir@/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
287 # Scratch pool definition
294 # Restricted console used by tray-monitor to get the status of the director
297 Name = @hostname@-mon
298 Password = "@mon_dir_password@"
299 CommandACL = status, .status