]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/tls-auth-bacula-dir.conf.in
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / scripts / tls-auth-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 = @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 = 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 @tmpdir@
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 = "sleep 5"
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 = "sleep 5"
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 = @tmpdir@/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 =  <@tmpdir@/file-list
178   }
179 }
180
181 FileSet {
182   Name = "SparseSet"
183   Include {
184     Options {
185       signature=MD5
186       sparse=yes
187     }
188     File = <@tmpdir@/file-list
189   }
190 }
191
192 FileSet {
193   Name = "CompressedSet"
194   Include {
195     Options {
196       signature=MD5 
197       compression=GZIP 
198     }
199     File = <@tmpdir@/file-list
200   }
201 }
202
203 FileSet {
204   Name = "FIFOSet"
205   Include {
206     Options {
207       readfifo = yes
208       signature=MD5 
209     }
210     File = <@tmpdir@/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 = <@tmpdir@/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 = @fdport@
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 Authenticate = yes
269   TLS Require = no
270   TLS Certificate = "@scriptdir@/tls-cert.pem"
271   TLS Key = "@scriptdir@/tls-cert.pem"
272   TLS CA Certificate File = "@scriptdir@/tls-CA.pem"
273 }
274
275 # Definiton of file storage device
276 Storage {
277   Name = File
278   Address = @hostname@                # N.B. Use a fully qualified name here
279   SDPort = @sdport@
280   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
281   Device = FileStorage
282   Media Type = File
283   Maximum Concurrent Jobs = 4
284   TLS Authenticate = yes
285   TLS Require = no
286   TLS Certificate = "@scriptdir@/tls-cert.pem"
287   TLS Key = "@scriptdir@/tls-cert.pem"
288   TLS CA Certificate File = "@scriptdir@/tls-CA.pem"
289 }
290
291 Storage {
292   Name = File1
293   Address = @hostname@                # N.B. Use a fully qualified name here
294   SDPort = @sdport@
295   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
296   Device = FileStorage1
297   Media Type = File1
298   Maximum Concurrent Jobs = 4
299   TLS Authenticate = yes
300   TLS Require = no
301   TLS Certificate = "@scriptdir@/tls-cert.pem"
302   TLS Key = "@scriptdir@/tls-cert.pem"
303   TLS CA Certificate File = "@scriptdir@/tls-CA.pem"
304 }
305
306
307 # Definition of DLT tape storage device
308 #Storage {
309 #  Name = DLTDrive
310 #  Address = @hostname@                # N.B. Use a fully qualified name here
311 #  SDPort = @sdport@
312 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
313 #  Device = "HP DLT 80"                # must be same as Device in Storage daemon
314 #  Media Type = DLT8000                # must be same as MediaType in Storage daemon
315 #}
316
317 # Definition of DDS tape storage device
318 #Storage {
319 #  Name = SDT-10000
320 #  Address = @hostname@                # N.B. Use a fully qualified name here
321 #  SDPort = @sdport@
322 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
323 #  Device = SDT-10000                  # must be same as Device in Storage daemon
324 #  Media Type = tape                  # must be same as MediaType in Storage daemon
325 #}
326
327 # Definition of 8mm tape storage device
328 #Storage {
329 #  Name = "8mmDrive"
330 #  Address = @hostname@                # N.B. Use a fully qualified name here
331 #  SDPort = @sdport@
332 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
333 #  Device = "Exabyte 8mm"
334 #  MediaType = "8mm"
335 #}
336
337
338 # Generic catalog service
339 Catalog {
340   Name = MyCatalog
341   @libdbi@
342   dbname = @db_name@; user = @db_user@; password = "@db_password@"
343 }
344
345 # Reasonable message delivery -- send most everything to email address
346 #  and to the console
347 Messages {
348   Name = Standard
349 # mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
350 # operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
351 # MailOnError = @job_email@ = all
352 # operator = @job_email@ = mount
353   console = all, !skipped, !terminate, !restored
354 #
355 # WARNING! the following will create a file that you must cycle from
356 #          time to time as it will grow indefinitely. However, it will
357 #          also keep all your messages if the scroll off the console.
358 #
359   append = "@working_dir@/log" = all, !skipped
360   catalog = all, !skipped
361 }
362
363 Messages {
364   Name = NoEmail
365 # mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
366   console = all, !skipped, !terminate
367 #
368 # WARNING! the following will create a file that you must cycle from
369 #          time to time as it will grow indefinitely. However, it will
370 #          also keep all your messages if the scroll off the console.
371 #
372   append = "@working_dir@/log" = all, !skipped
373   catalog = all, !skipped
374 }
375
376     
377 # Default pool definition
378 Pool {
379   Name = Default
380   Pool Type = Backup
381   Recycle = yes                       # Bacula can automatically recycle Volumes
382   AutoPrune = yes                     # Prune expired volumes
383   Volume Retention = 365d             # one year
384 # Label Format = "TEST-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}:${NumVols}"
385 }