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