]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-tape.conf.in
Big backport from Enterprise
[bacula/bacula] / regress / scripts / bacula-dir-tape.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.33
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   Maximum Concurrent Jobs = 100
22   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
23   Messages = Daemon
24   FD Connect Timeout = 2min 
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 = tape
36   Messages = Standard
37   Pool = Default
38   Write Bootstrap = "@working_dir@/NightlySave.bsr"
39   Maximum Concurrent Jobs = 100
40   SpoolData = yes
41 # Prefer Mounted Volumes = no
42   Max Run Time = 30min
43 }
44
45
46 Job {
47   Name = "NightlySave1"
48   Type = Backup
49   Client = @hostname@-fd 
50   FileSet="Full Set"
51   Storage = tape
52   Messages = Standard
53   Pool = Default
54   Write Bootstrap = "@working_dir@/NightlySave.bsr"
55   Maximum Concurrent Jobs = 100
56   SpoolData = yes
57 # Prefer Mounted Volumes = no
58   Client Run Before Job = "sleep 5"
59   Max Run Time = 30min
60 }
61
62 Job {
63   Name = "NightlySave2"
64   Type = Backup
65   Client = @hostname@-fd 
66   FileSet = "Full Set"
67   Storage = tape
68   Messages = Standard
69   Pool = Default
70   Write Bootstrap = "@working_dir@/NightlySave.bsr"
71   Maximum Concurrent Jobs = 100
72   SpoolData = yes
73 # Prefer Mounted Volumes = no
74   Max Run Time = 30min
75 }
76
77 # Backs up to tape2 which is a remote SD on
78 #   another machine
79 Job {
80   Name = "NightlySave3"
81   Type = Backup
82   Client = @hostname@-fd 
83   FileSet = "Full Set"
84   Storage = tape2
85   Messages = Standard
86   Pool = Default
87   Write Bootstrap = "@working_dir@/NightlySave.bsr"
88   Maximum Concurrent Jobs = 100
89   SpoolData = yes
90 # Prefer Mounted Volumes = no
91   Max Run Time = 30min
92 }
93
94 Job {
95   Name = "VerifyTape"
96   Type = Verify
97   Level = VolumeToCatalog
98   Client=@hostname@-fd 
99   FileSet="Verify Set"
100   Storage = tape
101   Messages = Standard
102   Pool = Default
103   Write Bootstrap = "@working_dir@/NightlySave.bsr"
104   Maximum Concurrent Jobs = 100
105   SpoolData = yes
106 # Prefer Mounted Volumes = no
107   Max Run Time = 30min
108 }
109
110 Job {
111   Name = "Virtual"
112   Type = Backup
113   Client=@hostname@-fd 
114   FileSet="Full Set"
115   Storage = Virtual
116   Messages = Standard
117   Pool = Default
118   Write Bootstrap = "@working_dir@/NightlySave.bsr"
119   Maximum Concurrent Jobs = 100
120   SpoolData = yes
121 # Prefer Mounted Volumes = no
122   Max Run Time = 30min
123 }
124
125
126
127 # Standard Restore template, to be changed by Console program
128 Job {
129   Name = "RestoreFiles"
130   Type = Restore
131   Client=@hostname@-fd 
132   FileSet="Full Set"
133   Storage = tape
134   Messages = Standard
135   Pool = Default
136   Where = @tmpdir@/bacula-restores
137   Max Run Time = 30min
138 }
139
140
141 # List of files to be backed up
142 FileSet {
143   Name = "Full Set"
144   Include { Options { signature=MD5 }
145     File =  <@tmpdir@/file-list
146   }
147 }
148
149 FileSet {
150   Name = "Verify Set"
151   Include { 
152     Options { 
153        signature=MD5
154        verify=pins1
155     }
156     File =  <@tmpdir@/file-list
157   }
158 }
159
160
161
162 #
163 # When to do the backups, full backup on first sunday of the month,
164 #  differential (i.e. incremental since full) every other sunday,
165 #  and incremental backups other days
166 Schedule {
167   Name = "WeeklyCycle"
168   Run = Full 1st sun at 1:05
169   Run = Differential 2nd-5th sun at 1:05
170   Run = Incremental mon-sat at 1:05
171 }
172
173 # Client (File Services) to backup
174 Client {
175   Name = @hostname@-fd
176   Address = @hostname@
177   FDPort = @fdport@
178   Catalog = MyCatalog
179   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
180   File Retention = 30d                # 30 days
181   Job Retention = 180d                # six months
182   AutoPrune = yes                     # Prune expired Jobs/Files
183   Maximum Concurrent Jobs = 100
184 }
185
186 # Definition of File storage device
187 Storage {
188   Name = File
189   Address = @hostname@                # N.B. Use a fully qualified name here
190   SDPort = @sdport@
191   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
192   Device = FileStorage                # must be same as Device in Storage daemon
193   Media Type = FileMedia              # must be same as MediaType in Storage daemon
194   Maximum Concurrent Jobs = 100
195 }
196
197 # Definition of File2 storage device
198 Storage {
199   Name = File2
200   Address = @hostname@                # N.B. Use a fully qualified name here
201   SDPort = @sdport@
202   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
203   Device = FileStorage                # must be same as Device in Storage daemon
204   Media Type = FileMedia2             # must be same as MediaType in Storage daemon
205   Maximum Concurrent Jobs = 100
206 }
207
208 # Definition of File3 storage device
209 Storage {
210   Name = File3
211   Address = @hostname@                # N.B. Use a fully qualified name here
212   SDPort = @sdport@
213   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
214   Device = FileStorage                # must be same as Device in Storage daemon
215   Media Type = FileMedia3             # must be same as MediaType in Storage daemon
216   Maximum Concurrent Jobs = 100
217 }
218
219 # Definition of File4 storage device
220 Storage {
221   Name = File4
222   Address = @hostname@                # N.B. Use a fully qualified name here
223   SDPort = @sdport@
224   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
225   Device = FileStorage                # must be same as Device in Storage daemon
226   Media Type = FileMedia4             # must be same as MediaType in Storage daemon
227   Maximum Concurrent Jobs = 100
228 }
229
230 # Definition of DDS tape storage device
231 Storage {
232   Name = tape
233   Address = @hostname@                # N.B. Use a fully qualified name here
234   SDPort = @sdport@
235   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
236   Device = tape                      # must be same as Device in Storage daemon
237   Media Type = tape                  # must be same as MediaType in Storage daemon
238   Maximum Concurrent Jobs = 100
239 # Autochanger = yes
240 }
241
242 # Definition tape storage device that is on a 
243 #   remote machine
244 Storage {
245   Name = tape2
246   Address = @hostname@        # For same machine shstore simulation
247 # Address = @remotehostaddr@  # For real two machine setup
248   SDPort = @sdport@
249   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
250   Device = tape2                     # must be same as Device in Storage daemon
251   Media Type = tape                  # must be same as MediaType in Storage daemon
252   Maximum Concurrent Jobs = 100
253 # Autochanger = yes
254 }
255
256
257 # Definition of Virtual storage device
258 Storage {
259   Name = Virtual
260   Address = @hostname@                # N.B. Use a fully qualified name here
261   SDPort = @sdport@
262   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
263   Device = Virtual                    # must be same as Device in Storage daemon
264   Media Type = Disk                   # must be same as MediaType in Storage daemon
265   Maximum Concurrent Jobs = 100
266   Autochanger = yes
267 }
268
269 Storage {
270   Name = vDrive-1
271   Address = @hostname@                # N.B. Use a fully qualified name here
272   SDPort = @sdport@
273   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
274   Device = vDrive-1                    # must be same as Device in Storage daemon
275   Media Type = Disk                   # must be same as MediaType in Storage daemon
276   Maximum Concurrent Jobs = 100
277   Autochanger = Virtual
278 }
279
280 Storage {
281   Name = vDrive-2
282   Address = @hostname@                # N.B. Use a fully qualified name here
283   SDPort = @sdport@
284   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
285   Device = vDrive-2                    # must be same as Device in Storage daemon
286   Media Type = Disk                   # must be same as MediaType in Storage daemon
287   Maximum Concurrent Jobs = 100
288   Autochanger = Virtual
289 }
290
291 Storage {
292   Name = vDrive-3
293   Address = @hostname@                # N.B. Use a fully qualified name here
294   SDPort = @sdport@
295   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
296   Device = vDrive-3                    # must be same as Device in Storage daemon
297   Media Type = Disk                   # must be same as MediaType in Storage daemon
298   Maximum Concurrent Jobs = 100
299   Autochanger = Virtual
300 }
301
302
303 # Definition of Virtual storage device
304 Storage {
305   Name = VirtualRestore
306   Address = @hostname@                # N.B. Use a fully qualified name here
307   SDPort = @sdport@
308   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
309   Device = VirtualRestore                    # must be same as Device in Storage daemon
310   Media Type = Disk                   # must be same as MediaType in Storage daemon
311   Maximum Concurrent Jobs = 100
312   Autochanger = yes
313 }
314
315 # Definition of Virtual storage device
316 Storage {
317   Name = Virtual2
318   Address = @hostname@                # N.B. Use a fully qualified name here
319   SDPort = @sdport@
320   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
321   Device = Virtual2                    # must be same as Device in Storage daemon
322   Media Type = Disk2                   # must be same as MediaType in Storage daemon
323   Maximum Concurrent Jobs = 100
324   Autochanger = yes
325 }
326
327 # Generic catalog service
328 Catalog {
329   Name = MyCatalog
330   @libdbi@
331   dbname = @db_name@; user = @db_user@; password = "@db_password@"
332 }
333
334 # Reasonable message delivery -- send most everything to email address
335 #  and to the console
336 Messages {
337   Name = Standard
338   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
339   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
340 # MailOnError = @job_email@ = all, !terminate
341 # operator = @job_email@ = mount
342   console = all, !skipped, !terminate, !restored
343 #
344 # WARNING! the following will create a file that you must cycle from
345 #          time to time as it will grow indefinitely. However, it will
346 #          also keep all your messages if the scroll off the console.
347 #
348   append = "@working_dir@/log" = all, !skipped
349   catalog = all, !skipped
350 }
351
352 #
353 # Message delivery for daemon messages (no job).
354 Messages {
355   Name = Daemon
356   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
357 # mail = @job_email@ = all, !skipped            
358   console = all, !skipped, !saved
359   append = "@working_dir@/log" = all, !skipped
360   catalog = all, !skipped
361 }
362
363     
364 # Default pool definition
365 Pool {
366   Name = Default
367   Pool Type = Backup
368   Recycle = yes                       # Bacula can automatically recycle Volumes
369   AutoPrune = yes                     # Prune expired volumes
370   Volume Retention = 365d             # one year
371   RecyclePool=Scratch                 # test forward reference
372 }
373
374 Pool {
375   Name = Full
376   Pool Type = Backup
377   Recycle = yes                       # Bacula can automatically recycle Volumes
378   AutoPrune = yes                     # Prune expired volumes
379   Volume Retention = 365d             # one year
380 }
381
382 Pool {
383   Name = Inc
384   Pool Type = Backup
385   Recycle = yes                       # Bacula can automatically recycle Volumes
386   AutoPrune = yes                     # Prune expired volumes
387   Volume Retention = 365d             # one year
388 }
389
390 Pool {
391   Name = Scratch
392   Pool Type = Backup
393   Recycle = yes                       # Bacula can automatically recycle Volumes
394   AutoPrune = yes                     # Prune expired volumes
395   Volume Retention = 365d             # one year
396   Recycle Pool = Scratch              # recycle back here
397 }
398
399 Pool {
400   Name = PoolA-MCJ1
401   Pool Type = Backup
402   Recycle = yes                       # Bacula can automatically recycle Volumes
403   AutoPrune = yes                     # Prune expired volumes
404   ActionOnPurge = Truncate
405   Volume Retention = 3d
406   Maximum Volume Bytes = 20M
407   Maximum Volume Jobs = 1
408   LabelFormat = "PoolA-MCJ1"
409 }
410
411 Pool {
412   Name = PoolB-MCJ1
413   Pool Type = Backup
414   Recycle = yes                       # Bacula can automatically recycle Volumes
415   AutoPrune = yes                     # Prune expired volumes
416   ActionOnPurge = Truncate
417   Volume Retention = 3d
418   Maximum Volume Bytes = 20M
419   Maximum Volume Jobs = 1
420   LabelFormat = "PoolB-MCJ1"
421 }
422
423 Pool {
424   Name = PoolC-MCJ1
425   Pool Type = Backup
426   Recycle = yes                       # Bacula can automatically recycle Volumes
427   AutoPrune = yes                     # Prune expired volumes
428   ActionOnPurge = Truncate
429   Volume Retention = 3d
430   Maximum Volume Bytes = 20M
431   Maximum Volume Jobs = 1
432   LabelFormat = "PoolC-MCJ1"
433 }
434
435 Pool {
436   Name = PoolD-MCJ1
437   Pool Type = Backup
438   Recycle = yes                       # Bacula can automatically recycle Volumes
439   AutoPrune = yes                     # Prune expired volumes
440   ActionOnPurge = Truncate
441   Volume Retention = 3d
442   Maximum Volume Bytes = 20M
443   Maximum Volume Jobs = 1
444   LabelFormat = "PoolD-MCJ1"
445 }
446
447 Pool {
448   Name = PoolE-MCJ1
449   Pool Type = Backup
450   Recycle = yes                       # Bacula can automatically recycle Volumes
451   AutoPrune = yes                     # Prune expired volumes
452   ActionOnPurge = Truncate
453   Volume Retention = 3d
454   Maximum Volume Bytes = 20M
455   Maximum Volume Jobs = 1
456   LabelFormat = "PoolE-MCJ1"
457 }
458
459 Pool {
460   Name = Special
461   Pool Type = Backup
462   Recycle = yes                       # Bacula can automatically recycle Volumes
463   AutoPrune = yes                     # Prune expired volumes
464   Volume Retention = 365d             # one year
465   ScratchPool = SpecialScratch
466   Maximum Volume Jobs = 1
467 }
468
469 Pool {
470   Name = SpecialScratch
471   Pool Type = Backup
472   Recycle = yes                       # Bacula can automatically recycle Volumes
473   AutoPrune = yes                     # Prune expired volumes
474   Volume Retention = 365d             # one year
475   Recycle Pool = SpecialScratch       # recycle back here
476 }