]> git.sur5r.net Git - bacula/bacula/blob - bacula/examples/conf/bacula-dir.conf
Final changes
[bacula/bacula] / bacula / examples / conf / bacula-dir.conf
1 #
2 # Kerns Production Bacula Director Daemon Configuration file
3 #
4
5 Director {
6   Name = HeadMan
7   DIRport = 9101                # where we listen for UA connections
8   QueryFile = "/home/bacula/bin/query.sql"
9   WorkingDirectory = "/home/bacula/bin/working"
10   PidDirectory =     "/home/bacula/bin/working"
11   SubSysDirectory =  "/home/bacula/bin/working"
12   Maximum Concurrent Jobs = 1
13   Password = 
14 }
15
16 Schedule {
17   Name = "PolyMatouWeeklyCycle"
18   Run = Level=Full sun at 1:05
19   Run = Level=Incremental mon-sat at 1:05
20 }
21
22 Schedule {
23   Name = "MatouWeeklyCycle"
24   Run = Level=Full 1st sat at 1:05
25   Run = Level=Differential 2nd-5th sat at 1:05
26   Run = Level=Incremental sun-fri at 1:05
27 }
28
29 Schedule {
30   Name = "VerifyCycle"
31   Run = Level=Catalog sun-sat at 5:05
32 }
33
34
35 Schedule {
36   Name = "MinimatouWeeklyCycle"
37   Run = Level=Full fri at 1:05
38   Run = Level=Incremental sat-thu at 1:05
39 }
40
41 Schedule {
42   Name = "MinouWeeklyCycle"
43   Run = Level=Full thu at 1:05
44   Run = Level=Incremental fri-wed at 1:05
45 }
46
47 Schedule {
48   Name = "RufusWeeklyCycle"
49   Run = Level=Full 1st mon at 1:05
50   Run = Level=Differential 2nd-5th mon at 1:05
51   Run = Level=Incremental tue-sun at 1:05
52 }
53
54 Schedule {
55   Name = "CatalogSched"
56   Run = Level=Full sun-sat at 1:10
57 }
58
59 Schedule {
60   Name = "Watchdog"
61   Run = Level=Full sun-sat at 6:05
62 }
63
64
65 Job {
66   Name = "Matou"
67   Type = Backup
68   Level = Incremental
69   Client=Matou 
70   FileSet="Matou Set"
71   Messages = Standard
72   Storage = DLTDrive
73   Pool = Default
74   Schedule = "MatouWeeklyCycle"
75   Write Bootstrap = "/mnt/deuter/files/backup/matou.bsr"
76   Priority = 10
77 }
78
79 Job {
80   Name = "Polymatou"
81   Type = Backup
82   Level = Incremental
83   Client=Polymatou
84   FileSet="Full Set"
85   Messages = Standard
86   Storage = DLTDrive
87   Pool = Default
88   Schedule = "PolyMatouWeeklyCycle"
89   Write Bootstrap = "/mnt/deuter/files/backup/pmatou.bsr"
90   Priority = 10
91 }
92
93 Job {
94   Name = "Rufus"
95   Type = Backup
96   Level = Incremental
97   Client=Rufus 
98   FileSet="RufusAll"
99   Messages = Standard
100   Storage = DLTDrive
101   Pool = Default
102   Schedule = "RufusWeeklyCycle"
103   Write Bootstrap = "/mnt/deuter/files/backup/rufus.bsr"
104   Priority = 10
105 }
106
107 Job {
108   Name = "Minimatou"
109   Type = Backup
110   Level = Incremental
111   Client=Minimatou 
112   FileSet="Win32 Full Set"
113   Messages = Standard
114   Storage = DLTDrive
115   Pool = Default
116   Schedule = "MinimatouWeeklyCycle"
117   Write Bootstrap = "/mnt/deuter/files/backup/mmatou.bsr"
118   Priority = 11
119 }
120
121 Job {
122   Name = "Minou"
123   Type = Backup
124   Level = Incremental
125   Client=Minou 
126   FileSet="Minou Full Set"
127   Messages = Standard
128   Storage = DLTDrive
129   Pool = Default
130   Schedule = "MinouWeeklyCycle"
131   Write Bootstrap = "/mnt/deuter/files/backup/minou.bsr"
132   Priority = 11
133 }
134
135 Job {
136   Name = "PmatouVerify"
137   Type = Verify
138   Level = Catalog
139   Client=PmatouVerify 
140   FileSet="Verify Set"
141   Messages = Standard
142   Storage = DLTDrive
143   Pool = Default
144   Schedule = "VerifyCycle"
145   Priority = 20                       # run after backups
146 }
147
148 Job {
149   Name = "MatouVerify"
150   Type = Verify
151   Level = Catalog
152   Client=MatouVerify 
153   FileSet="Verify Set"
154   Messages = Standard
155   Storage = DLTDrive
156   Pool = Default
157   Schedule = "VerifyCycle"
158   Priority = 20 
159 }
160
161 Job {
162   Name = "RufusVerify"
163   Type = Verify
164   Level = Catalog
165   Client=RufusVerify 
166   FileSet="Verify Set"
167   Messages = Standard
168   Storage = DLTDrive
169   Pool = Default
170   Schedule = "VerifyCycle"
171   Priority = 20
172 }
173
174 Job {
175   Name = "CatalogBackup"
176   Type = Backup
177   Level = Full
178   Client = Polymatou
179   FileSet = "CatalogFile"
180   Messages = Standard
181   Storage = DLTDrive
182   Pool = Default
183   Schedule = "CatalogSched"
184   RunBeforeJob = "/home/bacula/bin/make_catalog_backup"
185   RunAfterJob  = "/home/bacula/bin/delete_catalog_backup"
186   Write Bootstrap = "/mnt/deuter/files/backup/catalog.bsr"
187   Priority = 15      # run after backups, but before Verifies
188 }
189
190 Job {
191   Name = "Watchdog"
192   Type = Admin
193   Client=Watchdog
194   FileSet="Verify Set"
195   Messages = Standard
196   Storage = DLTDrive
197   Pool = Default
198   Schedule = "Watchdog"
199   RunAfterJob = "/home/bacula/bin/watchdog"
200   Priority = 99                       # last job to run
201 }
202
203 # Standard Restore template, to be changed by Console program
204 Job {
205   Name = "RestoreFiles"
206   Type = Restore
207   Client=Rufus
208   FileSet="Full Set"
209   Storage = DLTDrive
210   Messages = Standard
211   Pool = Default
212   Where = /tmp/bacula-restores
213 }
214
215  
216 FileSet {
217   Name = "Matou Set"
218   Include = signature=MD5 { 
219      /
220      /home
221      /usr
222      /files
223   }
224   Exclude = { /tmp/* }
225 }
226
227
228 FileSet {
229   Name = "Full Set"
230   Include = signature=MD5 { 
231      @/etc/backup.list
232   }
233   Exclude = { }
234 }
235
236 FileSet {
237   Name = "RufusAll"
238   Include = signature=MD5 { 
239      /
240      /boot
241      /home
242      /usr
243   }
244   Exclude = { }
245 }
246
247 # Backup the copy of the catalog
248 FileSet {
249   Name = "CatalogFile"
250   Include = signature=MD5 { 
251      /home/bacula/bin/working/bacula.sql
252   }
253 }
254
255
256 FileSet {
257   Name = "Verify Set"
258   Include = verify=pins5 signature=MD5 { 
259      /boot
260      /bin
261      /sbin
262      /usr/bin
263      /lib
264      /root/.ssh
265      /home/kern/.ssh
266      /var/named
267      /etc/sysconfig
268      /etc/ssh
269      /etc/security
270      /etc/exports
271      /etc/rc.d/init.d
272      /etc/sendmail.cf
273      /etc/sysctl.conf
274      /etc/services
275      /etc/xinetd.d
276      /etc/hosts.allow
277      /etc/hosts.deny
278      /etc/hosts
279      /etc/modules.conf
280      /etc/named.conf
281      /etc/pam.d
282      /etc/resolv.conf
283   }
284   Exclude = { }
285 }
286
287
288 FileSet {
289   Name = "Win32 Full Set"
290   Include = signature=MD5 { 
291      "c:/My Documents"
292   }
293   Exclude = { }
294 }
295
296 FileSet {
297   Name = "Minou Full Set"
298   Include = signature=MD5 { 
299      "d:/My Documents"
300   }
301   Exclude = { }
302 }
303
304 # Definition of tape storage device
305 Storage {
306   Name = DLTDrive
307   Address = lpmatou
308   SDPort = 9103
309   Password =
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 #Storage {
315 #  Name = "8mmDrive"
316 #  Address = lpmatou
317 #  SDPort = 9103
318 #  Password =
319 #  Device = "Exabyte 8mm"
320 #  MediaType = "8mm"
321 #}
322
323 Client {
324   Name = Matou
325   Address = lmatou
326   FDPort = 9102
327   Catalog = BackupDB
328   Password = 
329   File Retention = 30d                 # 80 days
330   Job Retention = 1y                  # one year
331   AutoPrune = yes                     # Prune expired Jobs/Files
332 }
333
334 Client {
335   Name = Polymatou
336   Address = lpmatou
337   FDPort = 9102
338   Catalog = BackupDB
339   Password =
340   File Retention = 30d                 # 80 days
341   Job Retention = 1y                  # one year
342   AutoPrune = yes                     # Prune expired Jobs/Files
343 }
344
345 Client {
346   Name = Rufus
347   Address = rufus
348   FDPort = 9102
349   Catalog = BackupDB
350   Password =
351   File Retention = 30d                 # 80 days
352   Job Retention = 1y                  # one year
353   AutoPrune = yes                     # Prune expired Jobs/Files
354 }
355
356 Client {
357   Name = Minimatou
358   Address = minimatou
359   FDPort = 9102
360   Catalog = BackupDB
361   Password =
362   File Retention = 30d                 # 80 days
363   Job Retention = 1y                  # one year
364   AutoPrune = yes                     # Prune expired Jobs/Files
365 }
366
367 Client {
368   Name = Minou
369   Address = minou
370   FDPort = 9102
371   Catalog = BackupDB
372   Password =
373   File Retention = 30d                 # 80 days
374   Job Retention = 1y                  # one year
375   AutoPrune = yes                     # Prune expired Jobs/Files
376 }
377
378 Client {
379   Name = MatouVerify
380   Address = lmatou
381   FDPort = 9102
382   Catalog = Verify
383   Password =
384   File Retention = 30d                # 30 days
385   Job Retention = 30d                 # 30 days
386   AutoPrune = yes                     # Prune expired Jobs/Files
387 }
388
389 Client {
390   Name = PmatouVerify
391   Address = lpmatou
392   FDPort = 9102
393   Catalog = Verify
394   Password =
395   File Retention = 30d                # 30 days
396   Job Retention = 30d                 # 30 days
397   AutoPrune = yes                     # Prune expired Jobs/Files
398 }
399
400 Client {
401   Name = RufusVerify
402   Address = rufus
403   FDPort = 9102
404   Catalog = Verify
405   Password =
406   File Retention = 30d                # 30 days
407   Job Retention = 30d                 # 30 days
408   AutoPrune = yes                     # Prune expired Jobs/Files
409 }
410
411 Client {
412   Name = Watchdog
413   Address = rufus
414   FDPort = 9102
415   Catalog = Verify
416   Password =
417   File Retention = 1d                 # 1 days
418   Job Retention = 1m                  # 1 month
419   AutoPrune = yes                     # Prune expired Jobs/Files
420 }
421
422 Catalog {
423   Name = BackupDB
424   dbname = bacula; user = bacula; password = ""
425 }
426
427 Catalog {
428   Name = Verify
429   dbname = verify; user = bacula; password = ""
430 }
431
432 Messages {
433   Name = Standard
434   mailcommand = "/home/bacula/bin/smtp -h mail.sibbald.com -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
435   operatorcommand = "/home/bacula/bin/smtp -h YOUR-SMTP_SERVER.com -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
436   MailOnError = YOUR-EMAIL@YOU.com = all
437   append = "/home/bacula/bin/log" = all
438   operator = YOUR-EMAIL@YOU.com = mount
439   console = all
440 }
441     
442
443 Pool {
444   Name = Default
445   Pool Type = Backup
446   Recycle = yes                       # Bacula can automatically recycle Volumes
447   AutoPrune = yes                     # Prune expired volumes
448   Volume Retention = 1y               # one year
449 }