]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-vtape.conf.in
Fix typo
[bacula/bacula] / regress / scripts / bacula-dir-vtape.conf.in
1 #
2 # Bacula Director Configuration file
3 #
4 #
5
6 Director {                            # define myself
7   Name = @hostname@-dir
8   DIRPort = @dirport@                # where we listen for UA connections
9   QueryFile = "@scriptdir@/query.sql"
10   WorkingDirectory = "@working_dir@"
11   PidDirectory = "@piddir@"
12   Maximum Concurrent Jobs = 40
13   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
14   Messages = Daemon
15 }
16
17 #
18 # Define the main nightly save backup job
19 #   By default, this job will back up to disk in @tmpdir@
20 Job {
21   Name = "NightlySave"
22   Type = Backup
23   Client=@hostname@-fd 
24   FileSet="Full Set"
25   Storage = LTO3
26   Messages = Standard
27   Pool = Default
28   Maximum Concurrent Jobs = 10
29   SpoolData = yes
30   Max Wait Time = 1m
31 # Prefer Mounted Volumes = no
32 }
33
34 Job {
35   Name = "NightlySave1"
36   Type = Backup
37   Client=@hostname@-fd 
38   FileSet="Full Set"
39   Storage = LTO1
40   Messages = Standard
41   Pool = Default
42   Write Bootstrap = "@working_dir@/NightlySave1.bsr"
43   Maximum Concurrent Jobs = 10
44   SpoolData = yes
45 # Prefer Mounted Volumes = no
46   Client Run Before Job = "/bin/sleep 2"
47 }
48
49 Job {
50   Name = "NightlySave2"
51   Type = Backup
52   Client=@hostname@-fd 
53   FileSet="Full Set"
54   Storage = LTO1
55   Messages = Standard
56   Pool = Default
57   Write Bootstrap = "@working_dir@/NightlySave2.bsr"
58   Maximum Concurrent Jobs = 10
59   SpoolData = yes
60 # Prefer Mounted Volumes = no
61 }
62
63 Job {
64   Name = "NightlySave3"
65   Type = Backup
66   Client=@hostname@-fd 
67   FileSet="Full Set"
68   Storage = LTO1
69   Messages = Standard
70   Pool = Default
71   Write Bootstrap = "@working_dir@/NightlySave3.bsr"
72   Maximum Concurrent Jobs = 10
73 # Prefer Mounted Volumes = no
74 }
75
76 Job {
77   Name = "VerifyTape"
78   Type = Verify
79   Level = VolumeToCatalog
80   Client=@hostname@-fd 
81   FileSet="Verify Set"
82   Storage = LTO1
83   Messages = Standard
84   Pool = Default
85   Write Bootstrap = "@working_dir@/NightlySave.bsr"
86   Maximum Concurrent Jobs = 4
87   SpoolData = yes
88 # Prefer Mounted Volumes = no
89 }
90
91
92 # Standard Restore template, to be changed by Console program
93 Job {
94   Name = "RestoreFiles"
95   Type = Restore
96   Client=@hostname@-fd 
97   FileSet="Full Set"
98   Storage = LTO1
99   Messages = Standard
100   Pool = Default
101   Where = @tmpdir@/bacula-restores
102 }
103
104
105 # List of files to be backed up
106 FileSet {
107   Name = "Full Set"
108   Include { Options { signature=MD5 }
109     File =  <@tmpdir@/file-list
110   }
111 }
112
113 FileSet {
114   Name = "Verify Set"
115   Include { 
116     Options { 
117        signature=MD5
118        verify=pins1
119     }
120     File =  <@tmpdir@/file-list
121   }
122 }
123
124
125 # Client (File Services) to backup
126 Client {
127   Name = @hostname@-fd
128   Address = @hostname@
129   FDPort = @fdport@
130   Catalog = MyCatalog
131   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
132   File Retention = 30d                # 30 days
133   Job Retention = 180d                # six months
134   AutoPrune = yes                     # Prune expired Jobs/Files
135   Maximum Concurrent Jobs = 10
136 }
137
138 # Client (File Services) to backup
139 Client {
140   Name = @hostname@-fd2
141   Address = @hostname@
142   FDPort = 1@fdport@
143   Catalog = MyCatalog
144   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
145   File Retention = 30d                # 30 days
146   Job Retention = 180d                # six months
147   AutoPrune = yes                     # Prune expired Jobs/Files
148   Maximum Concurrent Jobs = 10
149 }
150
151 # Client (File Services) to backup
152 Client {
153   Name = @hostname@-fd3
154   Address = @hostname@
155   FDPort = 2@fdport@
156   Catalog = MyCatalog
157   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
158   File Retention = 30d                # 30 days
159   Job Retention = 180d                # six months
160   AutoPrune = yes                     # Prune expired Jobs/Files
161   Maximum Concurrent Jobs = 10
162 }
163
164 # Client (File Services) to backup
165 Client {
166   Name = @hostname@-fd4
167   Address = @hostname@
168   FDPort = 3@fdport@
169   Catalog = MyCatalog
170   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
171   File Retention = 30d                # 30 days
172   Job Retention = 180d                # six months
173   AutoPrune = yes                     # Prune expired Jobs/Files
174   Maximum Concurrent Jobs = 10
175 }
176
177 # Client (File Services) to backup
178 Client {
179   Name = @hostname@-fd5
180   Address = @hostname@
181   FDPort = 4@fdport@
182   Catalog = MyCatalog
183   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
184   File Retention = 30d                # 30 days
185   Job Retention = 180d                # six months
186   AutoPrune = yes                     # Prune expired Jobs/Files
187   Maximum Concurrent Jobs = 10
188 }
189
190
191 Storage {
192   Name = LTO1
193   Address = @hostname@ 
194   SDPort = @sdport@
195   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
196   Device = LTO
197   Media Type = LTO1
198   Autochanger = yes
199   Maximum Concurrent Jobs = 50
200 }
201
202 Storage {
203   Name = LTO3
204   Address = @hostname@ 
205   SDPort = @sdport@
206   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
207   Device = LTO
208   Media Type = LTO3
209   Autochanger = yes
210   Maximum Concurrent Jobs = 50
211 }
212
213 ################################################################
214 # WARNING: Bacula doesn't support this kind of configuration
215 #          This is for testing purpose only !!!!!!!!!!!!
216 ################################################################
217
218 Storage {
219   Name = LTO3_0
220   Address = @hostname@ 
221   SDPort = @sdport@
222   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
223   Device = LTO3_0
224   Media Type = LTO3
225   Autochanger = yes
226   Maximum Concurrent Jobs = 5
227 }
228
229 Storage {
230   Name = LTO3_1
231   Address = @hostname@ 
232   SDPort = @sdport@
233   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
234   Device = LTO3_1
235   Media Type = LTO3
236   Autochanger = yes
237   Maximum Concurrent Jobs = 5
238 }
239
240 Storage {
241   Name = LTO3_2
242   Address = @hostname@ 
243   SDPort = @sdport@
244   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
245   Device = LTO3_2
246   Media Type = LTO3
247   Autochanger = yes
248   Maximum Concurrent Jobs = 5
249 }
250
251 Storage {
252   Name = LTO1_3
253   Address = @hostname@ 
254   SDPort = @sdport@
255   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
256   Device = LTO1_3
257   Media Type = LTO1
258   Autochanger = yes
259   Maximum Concurrent Jobs = 5
260 }
261
262 Storage {
263   Name = LTO1_4
264   Address = @hostname@ 
265   SDPort = @sdport@
266   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
267   Device = LTO1_4
268   Media Type = LTO1
269   Autochanger = yes
270   Maximum Concurrent Jobs = 5
271 }
272
273 Storage {
274   Name = LTO1_5
275   Address = @hostname@ 
276   SDPort = @sdport@
277   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
278   Device = LTO1_5
279   Media Type = LTO1
280   Autochanger = yes
281   Maximum Concurrent Jobs = 5
282 }
283
284 Storage {
285   Name = LTO1-ANSI_6
286   Address = @hostname@ 
287   SDPort = @sdport@
288   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
289   Device = LTO1-ANSI_6
290   Media Type = LTO1-ANSI
291   Autochanger = yes
292   Maximum Concurrent Jobs = 5
293 }
294
295 # Definition of File storage device
296 Storage {
297   Name = File
298   Address = @hostname@                # N.B. Use a fully qualified name here
299   SDPort = @sdport@
300   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
301   Device = FileStorage                # must be same as Device in Storage daemon
302   Media Type = FileMedia              # must be same as MediaType in Storage daemon
303   Maximum Concurrent Jobs = 10
304 }
305
306 # Generic catalog service
307 Catalog {
308   Name = MyCatalog
309   @libdbi@
310   dbname = @db_name@; user = @db_user@; password = "@db_password@"
311 }
312
313 # Reasonable message delivery -- send most everything to email address
314 #  and to the console
315 Messages {
316   Name = Standard
317   console = all, !skipped, !terminate, !restored
318   append = "@working_dir@/log" = all, !skipped
319   catalog = all, !skipped, !saved
320 }
321
322 #
323 # Message delivery for daemon messages (no job).
324 Messages {
325   Name = Daemon
326   console = all, !skipped, !saved
327   append = "@working_dir@/log" = all, !skipped
328   catalog = all, !skipped, !saved
329 }
330
331     
332 # Default pool definition
333 Pool {
334   Name = Default
335   Pool Type = Backup
336   Recycle = yes                       # Bacula can automatically recycle Volumes
337   AutoPrune = yes                     # Prune expired volumes
338   Volume Retention = 365d             # one year
339 }
340
341 Pool {
342   Name = Full
343   Pool Type = Backup
344   Recycle = yes                       # Bacula can automatically recycle Volumes
345   AutoPrune = yes                     # Prune expired volumes
346   Volume Retention = 365d             # one year
347 }
348
349 Pool {
350   Name = Test
351   Pool Type = Backup
352   Recycle = yes                       # Bacula can automatically recycle Volumes
353   AutoPrune = yes                     # Prune expired volumes
354   Volume Retention = 365d             # one year
355   MaximumVolumeJobs = 1
356 }
357
358 Pool {
359   Name = Inc
360   Pool Type = Backup
361   Recycle = yes                       # Bacula can automatically recycle Volumes
362   AutoPrune = yes                     # Prune expired volumes
363   Volume Retention = 365d             # one year
364 }
365
366 Pool {
367   Name = Diff
368   Pool Type = Backup
369   Recycle = yes                       # Bacula can automatically recycle Volumes
370   AutoPrune = yes                     # Prune expired volumes
371   Volume Retention = 365d             # one year
372 }
373
374 Pool {
375   Name = Scratch
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   Recycle Pool = Scratch              # recycle back here
381   Cleaning Prefix = CLN
382 }