]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/tls-bacula-dir.conf.in
Add Frank Sweetser's tls test
[bacula/bacula] / regress / scripts / tls-bacula-dir.conf.in
1 #
2 # Default Bacula Director Configuration file
3 #
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
6 #   FileSet resource.
7 #
8 #  For Bacula release 1.39 or later
9 #
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.
13 #
14
15 Director {                            # define myself
16   Name = @hostname@-dir
17   DIRport = 8101                # where we listen for UA connections
18   QueryFile = "@scriptdir@/query.sql"
19   WorkingDirectory = "@working_dir@"
20   PidDirectory = "@piddir@"
21   SubSysDirectory = "@subsysdir@"
22   Maximum Concurrent Jobs = 4
23   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"         # Console password
24   Messages = Standard
25 }
26
27 #
28 # Define the main nightly save backup job
29 #   By default, this job will back up to disk in /tmp
30 Job {
31   Name = "NightlySave"
32   Type = Backup
33   Client=@hostname@-fd 
34   FileSet="Full Set"
35   Storage = File
36   Messages = Standard
37   Pool = Default
38   Write Bootstrap = "@working_dir@/NightlySave.bsr"
39   Maximum Concurrent Jobs = 4
40   SpoolData=yes
41 }
42
43 Job {
44   Name = "MonsterSave"
45   Type = Backup
46   Client=@hostname@-fd 
47   FileSet="Full Set"
48   Storage = File1
49   Messages = Standard
50   Pool = Default
51   Write Bootstrap = "@working_dir@/NightlySave.bsr"
52 }
53
54
55 Job {
56   Name = "VerifyVolume"
57   Type = Verify
58   Level = VolumeToCatalog
59   Client=@hostname@-fd 
60   FileSet="Full Set"
61   Storage = File
62   Messages = Standard
63   Pool = Default
64   Write Bootstrap = "@working_dir@/NightlySave.bsr"
65 }
66
67
68 Job {
69   Name = "SparseTest"
70   Type = Backup
71   Client=@hostname@-fd 
72   FileSet="SparseSet"
73   Storage = File
74   Messages = Standard
75   Pool = Default
76   Write Bootstrap = "@working_dir@/NightlySave.bsr"
77 }
78
79 Job {
80   Name = "CompressedTest"
81   Type = Backup
82   Client=@hostname@-fd 
83   FileSet="CompressedSet"
84   Storage = File
85   Messages = Standard
86   Pool = Default
87   Maximum Concurrent Jobs = 4
88   Write Bootstrap = "@working_dir@/NightlySave.bsr"
89 }
90
91 Job {
92   Name = "SparseCompressedTest"
93   Type = Backup
94   Client=@hostname@-fd 
95   FileSet="SparseCompressedSet"
96   Storage = File
97   Messages = Standard
98   Pool = Default
99   Write Bootstrap = "@working_dir@/NightlySave.bsr"
100 }
101
102 Job {
103   Name = "FIFOTest"
104   Type = Backup
105   Client=@hostname@-fd 
106   FileSet="FIFOSet"
107   Storage = File
108   Messages = Standard
109   Pool = Default
110   Write Bootstrap = "@working_dir@/NightlySave.bsr"
111   ClientRunBeforeJob = "/bin/sleep 60"
112 }
113
114
115
116 # Backup the catalog database (after the nightly save)
117 Job {
118   Name = "BackupCatalog"
119   Type = Backup
120   Client=@hostname@-fd 
121   FileSet="Catalog"
122 #  Schedule = "WeeklyCycleAfterBackup"
123   Storage = File
124   Messages = Standard
125   Pool = Default
126   # This creates an ASCII copy of the catalog
127   RunBeforeJob = "@sbindir@/make_catalog_backup -u regress"
128   # This deletes the copy of the catalog
129   RunAfterJob  = "@sbindir@/delete_catalog_backup"
130   Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
131 }
132
133 JobDefs {
134   Name = "BackupJob"
135   Type = Backup
136   Pool = Default
137   Storage = File
138   Messages = Standard
139   Priority = 10
140 }
141
142 Job {
143   JobDefs = "BackupJob"
144   Name = "bug621-job-1"
145   Client = @hostname@-fd
146   FileSet="Full Set"
147   ClientRunBeforeJob = "/bin/sleep 60"
148 }
149
150 Job {
151   JobDefs = "BackupJob"
152   Name = "bug621-job-2"
153   Client = @hostname@-fd
154   FileSet = "Full Set"
155   Max Run Time = 30
156   Priority = 15
157 }
158
159
160 # Standard Restore template, to be changed by Console program
161 Job {
162   Name = "RestoreFiles"
163   Type = Restore
164   Client=@hostname@-fd 
165   FileSet="Full Set"
166   Storage = File
167   Messages = Standard
168   Pool = Default
169   Where = /tmp/bacula-restores
170 }
171
172
173 # List of files to be backed up
174 FileSet {
175   Name = "Full Set"
176   Include {  Options { signature=MD5 }
177      File =  </tmp/file-list
178   }
179 }
180
181 FileSet {
182   Name = "SparseSet"
183   Include {
184     Options {
185       signature=MD5
186       sparse=yes
187     }
188     File = </tmp/file-list
189   }
190 }
191
192 FileSet {
193   Name = "CompressedSet"
194   Include {
195     Options {
196       signature=MD5 
197       compression=GZIP 
198     }
199     File = </tmp/file-list
200   }
201 }
202
203 FileSet {
204   Name = "FIFOSet"
205   Include {
206     Options {
207       readfifo = yes
208       signature=MD5 
209     }
210     File = </tmp/file-list
211   }
212 }
213
214
215 FileSet {
216   Name = "SparseCompressedSet"
217   Include {
218     Options {
219       signature=MD5 
220       compression=GZIP
221       sparse=yes
222     }
223     File = </tmp/file-list
224   }
225 }
226
227
228
229 #
230 # When to do the backups, full backup on first sunday of the month,
231 #  differential (i.e. incremental since full) every other sunday,
232 #  and incremental backups other days
233 Schedule {
234   Name = "WeeklyCycle"
235   Run = Level=Full 1st sun at 1:05
236   Run = Level=Differential 2nd-5th sun at 1:05
237   Run = Level=Incremental mon-sat at 1:05
238 }
239
240 # This schedule does the catalog. It starts after the WeeklyCycle
241 Schedule {
242   Name = "WeeklyCycleAfterBackup"
243   Run = Level=Full sun-sat at 1:10
244 }
245
246 # This is the backup of the catalog
247 FileSet {
248   Name = "Catalog"
249   Include {
250     Options {
251       signature=MD5
252     }
253     File = /home/kern/bacula/regress/bin/working/bacula.sql
254   }
255 }
256
257 # Client (File Services) to backup
258 Client {
259   Name = @hostname@-fd
260   Address = @hostname@
261   FDPort = 8102
262   Catalog = MyCatalog
263   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
264   File Retention = 30d                # 30 days
265   Job Retention = 180d                # six months
266   AutoPrune = yes                     # Prune expired Jobs/Files
267   Maximum Concurrent Jobs = 4
268   TLS Require = yes
269   TLS Certificate = "@scriptdir@/tls-cert.pem"
270   TLS Key = "@scriptdir@/tls-cert.pem"
271   TLS CA Certificate File = "@scriptdir@/tls-CA.pem"
272 }
273
274 # Definiton of file storage device
275 Storage {
276   Name = File
277   Address = @hostname@                # N.B. Use a fully qualified name here
278   SDPort = 8103
279   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
280   Device = FileStorage
281   Media Type = File
282   Maximum Concurrent Jobs = 4
283   TLS Require = yes
284   TLS Certificate = "@scriptdir@/tls-cert.pem"
285   TLS Key = "@scriptdir@/tls-cert.pem"
286   TLS CA Certificate File = "@scriptdir@/tls-CA.pem"
287 }
288
289 Storage {
290   Name = File1
291   Address = @hostname@                # N.B. Use a fully qualified name here
292   SDPort = 8103
293   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
294   Device = FileStorage1
295   Media Type = File1
296   Maximum Concurrent Jobs = 4
297   TLS Require = yes
298   TLS Certificate = "@scriptdir@/tls-cert.pem"
299   TLS Key = "@scriptdir@/tls-cert.pem"
300   TLS CA Certificate File = "@scriptdir@/tls-CA.pem"
301 }
302
303
304 # Definition of DLT tape storage device
305 #Storage {
306 #  Name = DLTDrive
307 #  Address = @hostname@                # N.B. Use a fully qualified name here
308 #  SDPort = 8103
309 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
310 #  Device = "HP DLT 80"                # must be same as Device in Storage daemon
311 #  Media Type = DLT8000                # must be same as MediaType in Storage daemon
312 #}
313
314 # Definition of DDS tape storage device
315 #Storage {
316 #  Name = SDT-10000
317 #  Address = @hostname@                # N.B. Use a fully qualified name here
318 #  SDPort = 8103
319 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
320 #  Device = SDT-10000                  # must be same as Device in Storage daemon
321 #  Media Type = DDS-4                  # must be same as MediaType in Storage daemon
322 #}
323
324 # Definition of 8mm tape storage device
325 #Storage {
326 #  Name = "8mmDrive"
327 #  Address = @hostname@                # N.B. Use a fully qualified name here
328 #  SDPort = 8103
329 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
330 #  Device = "Exabyte 8mm"
331 #  MediaType = "8mm"
332 #}
333
334
335 # Generic catalog service
336 Catalog {
337   Name = MyCatalog
338   dbname = regress; user = regress; password = ""
339 }
340
341 # Reasonable message delivery -- send most everything to email address
342 #  and to the console
343 Messages {
344   Name = Standard
345   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
346   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
347   MailOnError = @job_email@ = all
348   operator = @job_email@ = mount
349   console = all, !skipped, !terminate, !restored
350 #
351 # WARNING! the following will create a file that you must cycle from
352 #          time to time as it will grow indefinitely. However, it will
353 #          also keep all your messages if the scroll off the console.
354 #
355   append = "@working_dir@/log" = all, !skipped
356 }
357
358 Messages {
359   Name = NoEmail
360   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
361   console = all, !skipped, !terminate
362 #
363 # WARNING! the following will create a file that you must cycle from
364 #          time to time as it will grow indefinitely. However, it will
365 #          also keep all your messages if the scroll off the console.
366 #
367   append = "@working_dir@/log" = all, !skipped
368 }
369
370     
371 # Default pool definition
372 Pool {
373   Name = Default
374   Pool Type = Backup
375   Recycle = yes                       # Bacula can automatically recycle Volumes
376   AutoPrune = yes                     # Prune expired volumes
377   Volume Retention = 365d             # one year
378 # Label Format = "TEST-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}:${NumVols}"
379 }