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