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