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 1:05
130 Run = Differential 2nd-5th sun at 1:05
131 Run = Incremental mon-sat at 1:05
134 # This schedule does the catalog. It starts after the WeeklyCycle
136 Name = "WeeklyCycleAfterBackup"
137 Run = Full sun-sat at 1: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 # Definiton 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"
216 # Generic catalog service
219 dbname = bacula; user = bacula; password = ""
222 # Reasonable message delivery -- send most everything to email address
227 # NOTE! If you send to two email or more email addresses, you will need
228 # to replace the %r in the from field (-f part) with a single valid
229 # email address in both the mailcommand and the operatorcommand.
231 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
232 operatorcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
233 mail = @job_email@ = all, !skipped
234 operator = @job_email@ = mount
235 console = all, !skipped, !saved
237 # WARNING! the following will create a file that you must cycle from
238 # time to time as it will grow indefinitely. However, it will
239 # also keep all your messages if they scroll off the console.
241 append = "@working_dir@/log" = all, !skipped
246 # Message delivery for daemon messages (no job).
249 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
250 mail = @job_email@ = all, !skipped
251 console = all, !skipped, !saved
252 append = "@working_dir@/log" = all, !skipped
258 # Default pool definition
262 Recycle = yes # Bacula can automatically recycle Volumes
263 AutoPrune = yes # Prune expired volumes
264 Volume Retention = 365 days # one year
265 Accept Any Volume = yes # write on any volume in the pool
269 # Restricted console used by tray-monitor to get the status of the director
272 Name = @hostname@-mon
273 Password = "@mon_dir_password@"
274 CommandACL = status, .status