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 # Arguments to make_catalog_backup are:
67 # make_catalog_backup <database-name> <user-name> <password> <host>
68 RunBeforeJob = "@scriptdir@/make_catalog_backup @db_name@ @db_user@"
69 # This deletes the copy of the catalog
70 RunAfterJob = "@scriptdir@/delete_catalog_backup"
71 Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
72 Priority = 11 # run after main backup
76 # Standard Restore template, to be changed by Console program
77 # Only one such job is needed for all Jobs/Clients/Storage ...
87 Where = @archivedir@/bacula-restores
91 # List of files to be backed up
99 # Put your list of files here, preceded by 'File =', one per line
100 # or include an external list with:
104 # Note: / backs up everything on the root partition.
105 # if you have other partitons such as /usr or /home
106 # you will probably want to add them too.
108 # By default this is defined to point to the Bacula build
109 # directory to give a reasonable FileSet to backup to
110 # disk storage during initial testing.
116 # If you backup the root directory, the following two excluded
117 # files can be useful
128 # When to do the backups, full backup on first sunday of the month,
129 # differential (i.e. incremental since full) every other sunday,
130 # and incremental backups other days
133 Run = Full 1st sun at 23:05
134 Run = Differential 2nd-5th sun at 23:05
135 Run = Incremental mon-sat at 23:05
138 # This schedule does the catalog. It starts after the WeeklyCycle
140 Name = "WeeklyCycleAfterBackup"
141 Run = Full sun-sat at 23:10
144 # This is the backup of the catalog
151 File = @working_dir@/bacula.sql
155 # Client (File Services) to backup
161 Password = "@fd_password@" # password for FileDaemon
162 File Retention = 30 days # 30 days
163 Job Retention = 6 months # six months
164 AutoPrune = yes # Prune expired Jobs/Files
168 # Second Client (File Services) to backup
169 # You should change Name, Address, and Password before using
172 # Name = @hostname@2-fd
173 # Address = @hostname@2
175 # Catalog = MyCatalog
176 # Password = "@fd_password@2" # password for FileDaemon 2
177 # File Retention = 30 days # 30 days
178 # Job Retention = 6 months # six months
179 # AutoPrune = yes # Prune expired Jobs/Files
183 # Definition of file storage device
186 # Do not use "localhost" here
187 Address = @hostname@ # N.B. Use a fully qualified name here
189 Password = "@sd_password@"
196 # Definition of DDS tape storage device
199 # Do not use "localhost" here
200 # Address = @hostname@ # N.B. Use a fully qualified name here
202 # Password = "@sd_password@" # password for Storage daemon
203 # Device = DDS-4 # must be same as Device in Storage daemon
204 # Media Type = DDS-4 # must be same as MediaType in Storage daemon
205 # Autochanger = yes # enable for autochanger device
208 # Definition of 8mm tape storage device
211 # Do not use "localhost" here
212 # Address = @hostname@ # N.B. Use a fully qualified name here
214 # Password = "@sd_password@"
215 # Device = "Exabyte 8mm"
219 # Definition of DVD storage device
222 # Do not use "localhost" here
223 # Address = @hostname@ # N.B. Use a fully qualified name here
225 # Password = "@sd_password@"
226 # Device = "DVD Writer"
231 # Generic catalog service
234 # Uncomment the following line if you want the dbi driver
235 # dbdriver = "dbi:mysql"; dbaddress = 127.0.0.1; dbport = 3306
236 dbname = @db_name@; user = @db_user@; password = ""
239 # Reasonable message delivery -- send most everything to email address
244 # NOTE! If you send to two email or more email addresses, you will need
245 # to replace the %r in the from field (-f part) with a single valid
246 # email address in both the mailcommand and the operatorcommand.
247 # What this does is, it sets the email address that emails would display
248 # in the FROM field, which is by default the same email as they're being
249 # sent to. However, if you send email to more than one address, then
250 # you'll have to set the FROM address manually, to a single address.
251 # for example, a 'no-reply@mydomain.com', is better since that tends to
252 # tell (most) people that its coming from an automated source.
255 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
256 operatorcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
257 mail = @job_email@ = all, !skipped
258 operator = @job_email@ = mount
259 console = all, !skipped, !saved
261 # WARNING! the following will create a file that you must cycle from
262 # time to time as it will grow indefinitely. However, it will
263 # also keep all your messages if they scroll off the console.
265 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
282 # Default pool definition
286 Recycle = yes # Bacula can automatically recycle Volumes
287 AutoPrune = yes # Prune expired volumes
288 Volume Retention = 365 days # one year
291 # Scratch pool definition
298 # Restricted console used by tray-monitor to get the status of the director
301 Name = @hostname@-mon
302 Password = "@mon_dir_password@"
303 CommandACL = status, .status