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