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 = @basename@-fd
32 Schedule = "WeeklyCycle"
37 Write Bootstrap = "@working_dir@/%c.bsr"
42 # Define the main nightly save backup job
43 # By default, this job will back up to disk in @archivedir@
45 Name = "BackupClient1"
46 JobDefs = "DefaultJob"
50 # Name = "BackupClient2"
51 # Client = @basename@2-fd
52 # JobDefs = "DefaultJob"
55 # Backup the catalog database (after the nightly save)
57 Name = "BackupCatalog"
58 JobDefs = "DefaultJob"
61 Schedule = "WeeklyCycleAfterBackup"
62 # This creates an ASCII copy of the catalog
63 # WARNING!!! Passing the password via the command line is insecure.
64 # see comments in make_catalog_backup for details.
65 # Arguments to make_catalog_backup are:
66 # make_catalog_backup <database-name> <user-name> <password> <host>
67 RunBeforeJob = "@scriptdir@/make_catalog_backup @db_name@ @db_user@"
68 # This deletes the copy of the catalog
69 RunAfterJob = "@scriptdir@/delete_catalog_backup"
70 Write Bootstrap = "@working_dir@/%n.bsr"
71 Priority = 11 # run after main backup
75 # Standard Restore template, to be changed by Console program
76 # Only one such job is needed for all Jobs/Clients/Storage ...
86 Where = @archivedir@/bacula-restores
90 # List of files to be backed up
98 # Put your list of files here, preceded by 'File =', one per line
99 # or include an external list with:
103 # Note: / backs up everything on the root partition.
104 # if you have other partitions such as /usr or /home
105 # you will probably want to add them too.
107 # By default this is defined to point to the Bacula binary
108 # directory to give a reasonable FileSet to backup to
109 # disk storage during initial testing.
115 # If you backup the root directory, the following two excluded
116 # files can be useful
129 # When to do the backups, full backup on first sunday of the month,
130 # differential (i.e. incremental since full) every other sunday,
131 # and incremental backups other days
134 Run = Full 1st sun at 23:05
135 Run = Differential 2nd-5th sun at 23:05
136 Run = Incremental mon-sat at 23:05
139 # This schedule does the catalog. It starts after the WeeklyCycle
141 Name = "WeeklyCycleAfterBackup"
142 Run = Full sun-sat at 23:10
145 # This is the backup of the catalog
152 File = @working_dir@/bacula.sql
156 # Client (File Services) to backup
162 Password = "@fd_password@" # password for FileDaemon
163 File Retention = 30 days # 30 days
164 Job Retention = 6 months # six months
165 AutoPrune = yes # Prune expired Jobs/Files
169 # Second Client (File Services) to backup
170 # You should change Name, Address, and Password before using
173 # Name = @basename@2-fd
174 # Address = @hostname@2
176 # Catalog = MyCatalog
177 # Password = "@fd_password@2" # password for FileDaemon 2
178 # File Retention = 30 days # 30 days
179 # Job Retention = 6 months # six months
180 # AutoPrune = yes # Prune expired Jobs/Files
184 # Definition of file storage device
187 # Do not use "localhost" here
188 Address = @hostname@ # N.B. Use a fully qualified name here
190 Password = "@sd_password@"
197 # Definition of DDS tape storage device
200 # Do not use "localhost" here
201 # Address = @hostname@ # N.B. Use a fully qualified name here
203 # Password = "@sd_password@" # password for Storage daemon
204 # Device = DDS-4 # must be same as Device in Storage daemon
205 # Media Type = DDS-4 # must be same as MediaType in Storage daemon
206 # Autochanger = yes # enable for autochanger device
209 # Definition of 8mm tape storage device
212 # Do not use "localhost" here
213 # Address = @hostname@ # N.B. Use a fully qualified name here
215 # Password = "@sd_password@"
216 # Device = "Exabyte 8mm"
220 # Definition of DVD storage device
223 # Do not use "localhost" here
224 # Address = @hostname@ # N.B. Use a fully qualified name here
226 # Password = "@sd_password@"
227 # Device = "DVD Writer"
232 # Generic catalog service
235 # Uncomment the following line if you want the dbi driver
236 @uncomment_dbi@ dbdriver = "dbi:@DB_TYPE@"; dbaddress = 127.0.0.1; dbport = @db_port@
237 dbname = "@db_name@"; dbuser = "@db_user@"; dbpassword = "@db_password@"
240 # Reasonable message delivery -- send most everything to email address
245 # NOTE! If you send to two email or more email addresses, you will need
246 # to replace the %r in the from field (-f part) with a single valid
247 # email address in both the mailcommand and the operatorcommand.
248 # What this does is, it sets the email address that emails would display
249 # in the FROM field, which is by default the same email as they're being
250 # sent to. However, if you send email to more than one address, then
251 # you'll have to set the FROM address manually, to a single address.
252 # for example, a 'no-reply@mydomain.com', is better since that tends to
253 # tell (most) people that its coming from an automated source.
256 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
257 operatorcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
258 mail = @job_email@ = all, !skipped
259 operator = @job_email@ = mount
260 console = all, !skipped, !saved
262 # WARNING! the following will create a file that you must cycle from
263 # time to time as it will grow indefinitely. However, it will
264 # also keep all your messages if they scroll off the console.
266 append = "@working_dir@/log" = all, !skipped
272 # Message delivery for daemon messages (no job).
275 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
276 mail = @job_email@ = all, !skipped
277 console = all, !skipped, !saved
278 append = "@working_dir@/log" = all, !skipped
281 # Default pool definition
285 Recycle = yes # Bacula can automatically recycle Volumes
286 AutoPrune = yes # Prune expired volumes
287 Volume Retention = 365 days # one year
290 # File Pool definition
294 Recycle = yes # Bacula can automatically recycle Volumes
295 AutoPrune = yes # Prune expired volumes
296 Volume Retention = 365 days # one year
297 Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
298 Maximum Volumes = 100 # Limit number of Volumes in Pool
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