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 # Arguments to make_catalog_backup.pl are:
64 # make_catalog_backup.pl <catalog-name>
65 RunBeforeJob = "@scriptdir@/make_catalog_backup.pl MyCatalog"
66 # This deletes the copy of the catalog
67 RunAfterJob = "@scriptdir@/delete_catalog_backup"
68 Write Bootstrap = "@working_dir@/%n.bsr"
69 Priority = 11 # run after main backup
73 # Standard Restore template, to be changed by Console program
74 # Only one such job is needed for all Jobs/Clients/Storage ...
84 Where = @archivedir@/bacula-restores
88 # List of files to be backed up
96 # Put your list of files here, preceded by 'File =', one per line
97 # or include an external list with:
101 # Note: / backs up everything on the root partition.
102 # if you have other partitions such as /usr or /home
103 # you will probably want to add them too.
105 # By default this is defined to point to the Bacula binary
106 # directory to give a reasonable FileSet to backup to
107 # disk storage during initial testing.
113 # If you backup the root directory, the following two excluded
114 # files can be useful
127 # When to do the backups, full backup on first sunday of the month,
128 # differential (i.e. incremental since full) every other sunday,
129 # and incremental backups other days
132 Run = Full 1st sun at 23:05
133 Run = Differential 2nd-5th sun at 23:05
134 Run = Incremental mon-sat at 23:05
137 # This schedule does the catalog. It starts after the WeeklyCycle
139 Name = "WeeklyCycleAfterBackup"
140 Run = Full sun-sat at 23:10
143 # This is the backup of the catalog
150 File = "@working_dir@/@db_name@.sql"
154 # Client (File Services) to backup
160 Password = "@fd_password@" # password for FileDaemon
161 File Retention = 30 days # 30 days
162 Job Retention = 6 months # six months
163 AutoPrune = yes # Prune expired Jobs/Files
167 # Second Client (File Services) to backup
168 # You should change Name, Address, and Password before using
171 # Name = @basename@2-fd
172 # Address = @hostname@2
174 # Catalog = MyCatalog
175 # Password = "@fd_password@2" # password for FileDaemon 2
176 # File Retention = 30 days # 30 days
177 # Job Retention = 6 months # six months
178 # AutoPrune = yes # Prune expired Jobs/Files
182 # Definition of file storage device
185 # Do not use "localhost" here
186 Address = @hostname@ # N.B. Use a fully qualified name here
188 Password = "@sd_password@"
195 # Definition of DDS tape storage device
198 # Do not use "localhost" here
199 # Address = @hostname@ # N.B. Use a fully qualified name here
201 # Password = "@sd_password@" # password for Storage daemon
202 # Device = DDS-4 # must be same as Device in Storage daemon
203 # Media Type = DDS-4 # must be same as MediaType in Storage daemon
204 # Autochanger = yes # enable for autochanger device
207 # Definition of 8mm tape storage device
210 # Do not use "localhost" here
211 # Address = @hostname@ # N.B. Use a fully qualified name here
213 # Password = "@sd_password@"
214 # Device = "Exabyte 8mm"
218 # Definition of DVD storage device
221 # Do not use "localhost" here
222 # Address = @hostname@ # N.B. Use a fully qualified name here
224 # Password = "@sd_password@"
225 # Device = "DVD Writer"
230 # Generic catalog service
233 # Uncomment the following line if you want the dbi driver
234 @uncomment_dbi@ dbdriver = "dbi:@DEFAULT_DB_TYPE@"; dbaddress = 127.0.0.1; dbport = @db_port@
235 dbname = "@db_name@"; dbuser = "@db_user@"; dbpassword = "@db_password@"
238 # Reasonable message delivery -- send most everything to email address
243 # NOTE! If you send to two email or more email addresses, you will need
244 # to replace the %r in the from field (-f part) with a single valid
245 # email address in both the mailcommand and the operatorcommand.
246 # What this does is, it sets the email address that emails would display
247 # in the FROM field, which is by default the same email as they're being
248 # sent to. However, if you send email to more than one address, then
249 # you'll have to set the FROM address manually, to a single address.
250 # for example, a 'no-reply@mydomain.com', is better since that tends to
251 # tell (most) people that its coming from an automated source.
254 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
255 operatorcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
256 mail = @job_email@ = all, !skipped
257 operator = @job_email@ = mount
258 console = all, !skipped, !saved
260 # WARNING! the following will create a file that you must cycle from
261 # time to time as it will grow indefinitely. However, it will
262 # also keep all your messages if they scroll off the console.
264 append = "@working_dir@/log" = all, !skipped
270 # Message delivery for daemon messages (no job).
273 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
274 mail = @job_email@ = all, !skipped
275 console = all, !skipped, !saved
276 append = "@working_dir@/log" = all, !skipped
279 # Default pool definition
283 Recycle = yes # Bacula can automatically recycle Volumes
284 AutoPrune = yes # Prune expired volumes
285 Volume Retention = 365 days # one year
288 # File Pool definition
292 Recycle = yes # Bacula can automatically recycle Volumes
293 AutoPrune = yes # Prune expired volumes
294 Volume Retention = 365 days # one year
295 Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
296 Maximum Volumes = 100 # Limit number of Volumes in Pool
300 # Scratch pool definition
307 # Restricted console used by tray-monitor to get the status of the director
310 Name = @basename@-mon
311 Password = "@mon_dir_password@"
312 CommandACL = status, .status