]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/new-test-bacula-dir.conf.in
ebl Add debug option to Bconsole.pm
[bacula/bacula] / regress / scripts / new-test-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 = 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 = Standard
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   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 }
112
113
114
115 # Backup the catalog database (after the nightly save)
116 Job {
117   Name = "BackupCatalog"
118   Type = Backup
119   Client=@hostname@-fd 
120   FileSet="Catalog"
121 #  Schedule = "WeeklyCycleAfterBackup"
122   Storage = File
123   Messages = Standard
124   Pool = Default
125   # This creates an ASCII copy of the catalog
126   RunBeforeJob = "@sbindir@/make_catalog_backup -u bacula"
127   # This deletes the copy of the catalog
128   RunAfterJob  = "@sbindir@/delete_catalog_backup"
129   Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
130 }
131
132 JobDefs {
133   Name = "BackupJob"
134   Type = Backup
135   Pool = Default
136   Storage = File
137   Messages = Standard
138   Priority = 10
139 }
140
141 Job {
142   JobDefs = "BackupJob"
143   Name = "bug621-job-1"
144   Client = @hostname@-fd
145   FileSet="Full Set"
146   ClientRunBeforeJob = "/bin/sleep 60"
147 }
148
149 Job {
150   JobDefs = "BackupJob"
151   Name = "bug621-job-2"
152   Client = @hostname@-fd
153   FileSet = "Full Set"
154   Max Run Time = 30
155   Priority = 15
156 }
157
158
159 # Standard Restore template, to be changed by Console program
160 Job {
161   Name = "RestoreFiles"
162   Type = Restore
163   Client=@hostname@-fd 
164   FileSet="Full Set"
165   Storage = File
166   Messages = Standard
167   Pool = Default
168   Where = /tmp/bacula-restores
169 }
170
171
172 # List of files to be backed up
173 FileSet {
174   Name = "Full Set"
175   Include {  Options { signature=MD5 }
176      File =  </tmp/file-list
177   }
178 }
179
180 FileSet {
181   Name = "SparseSet"
182   Include {
183     Options {
184       signature=MD5
185       sparse=yes
186     }
187     File = </tmp/file-list
188   }
189 }
190
191 FileSet {
192   Name = "CompressedSet"
193   Include {
194     Options {
195       signature=MD5 
196       compression=GZIP 
197     }
198     File = </tmp/file-list
199   }
200 }
201
202 FileSet {
203   Name = "FIFOSet"
204   Include {
205     Options {
206       readfifo = yes
207       signature=MD5 
208     }
209     File = </tmp/file-list
210   }
211 }
212
213
214 FileSet {
215   Name = "SparseCompressedSet"
216   Include {
217     Options {
218       signature=MD5 
219       compression=GZIP
220       sparse=yes
221     }
222     File = </tmp/file-list
223   }
224 }
225
226
227
228 #
229 # When to do the backups, full backup on first sunday of the month,
230 #  differential (i.e. incremental since full) every other sunday,
231 #  and incremental backups other days
232 Schedule {
233   Name = "WeeklyCycle"
234   Run = Level=Full 1st sun at 1:05
235   Run = Level=Differential 2nd-5th sun at 1:05
236   Run = Level=Incremental mon-sat at 1:05
237 }
238
239 # This schedule does the catalog. It starts after the WeeklyCycle
240 Schedule {
241   Name = "WeeklyCycleAfterBackup"
242   Run = Level=Full sun-sat at 1:10
243 }
244
245 # This is the backup of the catalog
246 FileSet {
247   Name = "Catalog"
248   Include {
249     Options {
250       signature=MD5
251     }
252     File = /home/kern/bacula/regress/bin/working/bacula.sql
253   }
254 }
255
256 # Client (File Services) to backup
257 Client {
258   Name = @hostname@-fd
259   Address = @hostname@
260   FDPort = 8102
261   Catalog = MyCatalog
262   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
263   File Retention = 30d                # 30 days
264   Job Retention = 180d                # six months
265   AutoPrune = yes                     # Prune expired Jobs/Files
266   Maximum Concurrent Jobs = 4
267 }
268
269 # Definiton of file storage device
270 Storage {
271   Name = File
272   Address = @hostname@                # N.B. Use a fully qualified name here
273   SDPort = 8103
274   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
275   Device = FileStorage
276   Media Type = File
277   Maximum Concurrent Jobs = 4
278 }
279
280 Storage {
281   Name = File1
282   Address = @hostname@                # N.B. Use a fully qualified name here
283   SDPort = 8103
284   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
285   Device = FileStorage1
286   Media Type = File1
287   Maximum Concurrent Jobs = 4
288 }
289
290
291 # Definition of DLT tape storage device
292 #Storage {
293 #  Name = DLTDrive
294 #  Address = @hostname@                # N.B. Use a fully qualified name here
295 #  SDPort = 8103
296 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
297 #  Device = "HP DLT 80"                # must be same as Device in Storage daemon
298 #  Media Type = DLT8000                # must be same as MediaType in Storage daemon
299 #}
300
301 # Definition of DDS tape storage device
302 #Storage {
303 #  Name = SDT-10000
304 #  Address = @hostname@                # N.B. Use a fully qualified name here
305 #  SDPort = 8103
306 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
307 #  Device = SDT-10000                  # must be same as Device in Storage daemon
308 #  Media Type = DDS-4                  # must be same as MediaType in Storage daemon
309 #}
310
311 # Definition of 8mm tape storage device
312 #Storage {
313 #  Name = "8mmDrive"
314 #  Address = @hostname@                # N.B. Use a fully qualified name here
315 #  SDPort = 8103
316 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
317 #  Device = "Exabyte 8mm"
318 #  MediaType = "8mm"
319 #}
320
321
322 # Generic catalog service
323 Catalog {
324   Name = MyCatalog
325   dbname = bacula; user = bacula; password = ""
326 }
327
328 # Reasonable message delivery -- send most everything to email address
329 #  and to the console
330 Messages {
331   Name = Standard
332   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
333   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
334   MailOnError = @job_email@ = all
335   operator = @job_email@ = mount
336   console = all, !skipped, !terminate, !restored
337 #
338 # WARNING! the following will create a file that you must cycle from
339 #          time to time as it will grow indefinitely. However, it will
340 #          also keep all your messages if the scroll off the console.
341 #
342   append = "@working_dir@/log" = all, !skipped
343 }
344
345 Messages {
346   Name = NoEmail
347   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
348   console = all, !skipped, !terminate
349 #
350 # WARNING! the following will create a file that you must cycle from
351 #          time to time as it will grow indefinitely. However, it will
352 #          also keep all your messages if the scroll off the console.
353 #
354   append = "@working_dir@/log" = all, !skipped
355 }
356
357     
358 # Default pool definition
359 Pool {
360   Name = Default
361   Pool Type = Backup
362   Recycle = yes                       # Bacula can automatically recycle Volumes
363   AutoPrune = yes                     # Prune expired volumes
364   Volume Retention = 365d             # one year
365 # Label Format = "TEST-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}:${NumVols}"
366 }