]> git.sur5r.net Git - bacula/bacula/blob - bacula/examples/conf/m4.bacula-dir.conf
Doc updates + fixes to rescue script
[bacula/bacula] / bacula / examples / conf / m4.bacula-dir.conf
1 # bacula-dir.conf 
2
3 # Default Bacula Director Configuration file
4 #
5 # WARNING: 
6 # This file is generated from /opt/lysator/etc/bacula/bacula-dir.conf
7 # Edit the source file and then run 'make'.
8 #
9
10 include(bacula-defs.m4)
11
12 Director {                            # define myself
13   Name = Baccus
14   DIRport = 9101                # where we listen for UA connections
15   QueryFile = "/opt/bacula/etc/query.sql"
16   WorkingDirectory = "/var/bacula/working"
17   PidDirectory = "/var/run"
18   Maximum Concurrent Jobs = 10
19   Password = "djUGGqG0ckdbbTp0J0cAnK6FqZC5YX5i6"         # Console password
20   Messages = Standard
21 }
22
23
24 # Generic catalog service
25 Catalog {
26   Name = MyCatalog
27   dbname = bacula; user = bacula; password = ""
28 }
29
30
31
32 JobDefs {
33   Name = "DefaultJob"
34   Type = Backup
35   Level = Incremental
36   Schedule = "WeeklyCycle"
37   Storage = "DLT-0"
38   Messages = Standard
39   Spool Data = yes
40   Pool = Default
41   Max Start Delay = 20h
42   Priority = 10
43 }
44
45
46
47 JobDefs {
48   Name = "InservitusJob"
49   Type = Backup
50   Level = Incremental
51   Schedule = "WeeklyCycle"
52   Storage = "DLT-1"
53   Messages = Standard
54   Spool Data = yes
55   Pool = Inservitus
56   Max Start Delay = 20h
57   Priority = 10
58 }
59
60 JobDefs {
61   Name = "LysdiskJob"
62   Type = Backup
63   Level = Incremental
64   Schedule = "WeeklyCycle"
65   Storage = "DLT-2"
66   Messages = Standard
67   Spool Data = yes
68   Pool = Lysdisk
69   Max Start Delay = 20h
70   Priority = 10
71 }
72
73 JobDefs {
74   Name = "ShermanJob"
75   Type = Backup
76   Level = Incremental
77   Schedule = "WeeklyCycle"
78   Storage = "DLT-3"
79   Messages = Standard
80   Spool Data = yes
81   Pool = Sherman
82   Max Start Delay = 20h
83   Priority = 10
84 }
85
86 # Backup the catalog database (after the nightly save)
87 Job {
88   Name = "BackupCatalog"
89   Client = Baccus
90   JobDefs = "DefaultJob"
91   Level = Full
92   FileSet="Catalog"
93   Schedule = "WeeklyCycleAfterBackup"
94   # This creates an ASCII copy of the catalog
95   RunBeforeJob = "/opt/bacula/etc/make_catalog_backup -u bacula"
96   # This deletes the copy of the catalog
97   RunAfterJob  = "/opt/bacula/etc/delete_catalog_backup"
98   Write Bootstrap = "/var/bacula/working/BackupCatalog.bsr"
99   Priority = 11                   # run after main backup
100 }
101
102 # Standard Restore template, to be changed by Console program
103 Job {
104   Name = "Restore"
105   Type = Restore
106   Client = Baccus
107   FileSet="Baccus"                  
108   Storage = "DLT-0"
109   Pool = Default
110   Messages = Standard
111   Where = /tmp/bacula-restores
112 }
113
114
115 # Clients to backup --------------------------------------------------
116
117 #stalingrad
118 #hanna
119 #venom
120 #klorin
121 #britney
122 #sherman
123 #inservitus
124 #tokaimura
125 #u137
126
127 #elfwood
128 #hal
129 #sten
130 #sirius (skippa? Networkerservern...)
131
132
133 CLIENT(Baccus, baccus.ifm.liu.se, DefaultJob)
134 FileSet {
135   Name = "Baccus"
136   Include = signature=MD5 { 
137     /
138     /usr
139     /var
140     /opt
141   }
142
143   Exclude = { 
144         /proc /tmp /var/tmp /devices /etc/mnttab /dev/fd /var/run 
145         /export
146   }
147 }
148
149
150
151 CLIENT(Stalingrad, stalingrad.lysator.liu.se, DefaultJob)
152 FileSet {
153   Name = "Stalingrad"
154   Include = signature=MD5 { 
155         /
156         /cvsroot
157   }
158   Exclude = { 
159         /proc /tmp /var/tmp /etc/mnttab /dev/fd /var/run /dev/shm
160   }
161 }
162
163
164
165 CLIENT(Hanna, hanna.lysator.liu.se, DefaultJob)
166 FileSet {
167   Name = "Hanna"
168   Include = signature=MD5 { 
169         /
170         /var
171         /local
172         /export/hanna
173   }
174   Exclude = { 
175         /proc /tmp /var/tmp /devices /etc/mnttab /dev/fd /var/run 
176         /export/hanna/mirror
177         /export/hanna/ftp/mirror
178   }
179 }
180   
181
182 CLIENT(Venom, venom.lysator.liu.se, DefaultJob)
183 FileSet {
184   Name = "Venom"
185   Include = signature=MD5 { 
186         /
187         /clone/dsk1
188         /clone/dsk2
189         /export/dsk1
190         /export/dsk2
191   }
192   Exclude = { 
193         /proc /tmp /var/tmp /devices /etc/mnttab /dev/fd /var/run 
194   }
195 }
196
197
198 CLIENT(Klorin,     klorin.lysator.liu.se,     DefaultJob)
199 FileSet {
200   Name = "Klorin"
201   Include = signature=MD5 { 
202         /
203         /export/mdsk1
204   }
205   Exclude = { 
206         /proc /tmp /var/tmp /devices /etc/mnttab /dev/fd /var/run 
207   }
208 }
209   
210
211 CLIENT(Britney,    britney.lysator.liu.se,    DefaultJob)
212 FileSet {
213   Name = "Britney"
214   Include = signature=MD5 { 
215         /
216         /export/dsk1
217         /export/oldroot
218         /export/lysdisk1
219         /export/lysdisk3
220         /export/lysdisk4
221         /export/lysdisk6
222         /export/lysdisk7
223         /export/lysdisk8
224         /export/lysdisk9
225         /export/lysdisk11
226   }
227   Exclude = { 
228         /proc /tmp /var/tmp /devices /etc/mnttab /dev/fd /var/run 
229   }
230 }
231   
232
233
234 CLIENT(Sherman,    sherman.lysator.liu.se, DefaultJob)
235 FileSet {
236   Name = "Sherman"
237   Include = signature=MD5 { 
238         /
239         /web
240         /boot
241         /var/opt/mysql
242   }
243   Exclude = { 
244         /proc /tmp /var/tmp /etc/mnttab /dev/fd /var/run 
245   }
246 }
247   
248
249
250 CLIENT(U137, u137.lysator.liu.se, DefaultJob)
251 FileSet {
252   Name = "U137"
253   Include = signature=MD5 { 
254         /
255         /export/dsk1
256         /export/dsk2
257   }
258   Exclude = { 
259         /proc /tmp /var/tmp /etc/mnttab /dev/fd /var/run 
260   }
261 }
262   
263
264 CLIENT(Tokaimura, tokaimura.lysator.liu.se, DefaultJob)
265 FileSet {
266   Name = "Tokaimura"
267   Include = signature=MD5 { 
268         /
269         /usr
270         /var
271         /opt
272         /export/mdsk
273   }
274   Exclude = { 
275         /proc /tmp /var/tmp /devices /etc/mnttab /dev/fd /var/run 
276   }
277 }
278
279
280 CLIENT(Inservitus, inservitus.lysator.liu.se, InservitusJob)
281 FileSet {
282   Name = "Inservitus"
283   Include = signature=MD5 { 
284         /
285         /var
286         /export
287         /export/d1
288         /export/d2
289         /export/d3
290         /export/home
291   }
292   Exclude = { 
293         /proc /tmp /var/tmp /devices /etc/mnttab /dev/fd /var/run 
294         /export/snapshot
295         /snapshot
296   }
297 }
298
299
300
301 #
302 # When to do the backups, full backup on first sunday of the month,
303 #  differential (i.e. incremental since full) every other sunday,
304 #  and incremental backups other days
305 Schedule {
306   Name = "WeeklyCycle"
307   Run = Full 1st sun at 1:05
308   Run = Differential 2nd-5th sun at 1:05
309   Run = Incremental mon-sat at 1:05
310 }
311
312 # This schedule does the catalog. It starts after the WeeklyCycle
313 Schedule {
314   Name = "WeeklyCycleAfterBackup"
315   Run = Full sun-sat at 1:10
316 }
317
318 # This is the backup of the catalog
319 FileSet {
320   Name = "Catalog"
321   Include = signature=MD5 {
322      /var/bacula/working/bacula.sql
323   }
324 }
325
326
327 STORAGE(File-0, File,    baccus.ifm.liu.se)
328 STORAGE(DLT-0,  DLT7000, baccus.ifm.liu.se)
329 STORAGE(DLT-1,  DLT7000, baccus.ifm.liu.se)
330 STORAGE(DLT-2,  DLT7000, baccus.ifm.liu.se)
331 STORAGE(DLT-3,  DLT7000, baccus.ifm.liu.se)
332 STORAGE(DLT-4,  DLT7000, baccus.ifm.liu.se)
333 STORAGE(DLT-5,  DLT7000, baccus.ifm.liu.se)
334
335
336
337 # Reasonable message delivery -- send most everything to email address
338 #  and to the console
339 Messages {
340   Name = Standard
341 #
342 # NOTE! If you send to two email or more email addresses, you will need
343 #  to replace the %r in the from field (-f part) with a single valid
344 #  email address in both the mailcommand and the operatorcommand.
345 #
346   mailcommand = "/opt/bacula/sbin/bsmtp -h ifm.liu.se -f \"\(Bacula\) bacula@ifm.liu.se\" -s \"Bacula: %t %e of %c %l\" %r"
347   operatorcommand = "/opt/bacula/sbin/bsmtp -h ifm.liu.se -f \"\(Bacula\) bacula@ifm.liu.se\" -s \"Bacula: Intervention needed for %j\" %r"
348   mail = peter@ifm.liu.se,backup-admin@lysator.liu.se = all, !skipped            
349   operator = peter@ifm.liu.se,backup-admin@lysator.liu.se = mount
350   console = all, !skipped, !saved
351 #
352 # WARNING! the following will create a file that you must cycle from
353 #          time to time as it will grow indefinitely. However, it will
354 #          also keep all your messages if they scroll off the console.
355 #
356   append = "/var/bacula/working/log" = all, !skipped
357 }
358
359
360 # Define Pools --------------------------------------
361 POOL(Default)
362 POOL(Inservitus)
363 POOL(Sherman)
364 POOL(Lysdisk)