]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-tape.conf.in
Tweak multi-storage-test
[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 = "/bin/sleep 10"
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 Job {
78   Name = "VerifyTape"
79   Type = Verify
80   Level = VolumeToCatalog
81   Client=@hostname@-fd 
82   FileSet="Verify Set"
83   Storage = tape
84   Messages = Standard
85   Pool = Default
86   Write Bootstrap = "@working_dir@/NightlySave.bsr"
87   Maximum Concurrent Jobs = 100
88   SpoolData = yes
89 # Prefer Mounted Volumes = no
90   Max Run Time = 30min
91 }
92
93 Job {
94   Name = "Virtual"
95   Type = Backup
96   Client=@hostname@-fd 
97   FileSet="Full Set"
98   Storage = Virtual
99   Messages = Standard
100   Pool = Default
101   Write Bootstrap = "@working_dir@/NightlySave.bsr"
102   Maximum Concurrent Jobs = 100
103   SpoolData = yes
104 # Prefer Mounted Volumes = no
105   Max Run Time = 30min
106 }
107
108
109
110 # Standard Restore template, to be changed by Console program
111 Job {
112   Name = "RestoreFiles"
113   Type = Restore
114   Client=@hostname@-fd 
115   FileSet="Full Set"
116   Storage = tape
117   Messages = Standard
118   Pool = Default
119   Where = @tmpdir@/bacula-restores
120   Max Run Time = 30min
121 }
122
123
124 # List of files to be backed up
125 FileSet {
126   Name = "Full Set"
127   Include { Options { signature=MD5 }
128     File =  <@tmpdir@/file-list
129   }
130 }
131
132 FileSet {
133   Name = "Verify Set"
134   Include { 
135     Options { 
136        signature=MD5
137        verify=pins1
138     }
139     File =  <@tmpdir@/file-list
140   }
141 }
142
143
144
145 #
146 # When to do the backups, full backup on first sunday of the month,
147 #  differential (i.e. incremental since full) every other sunday,
148 #  and incremental backups other days
149 Schedule {
150   Name = "WeeklyCycle"
151   Run = Full 1st sun at 1:05
152   Run = Differential 2nd-5th sun at 1:05
153   Run = Incremental mon-sat at 1:05
154 }
155
156 # Client (File Services) to backup
157 Client {
158   Name = @hostname@-fd
159   Address = @hostname@
160   FDPort = @fdport@
161   Catalog = MyCatalog
162   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
163   File Retention = 30d                # 30 days
164   Job Retention = 180d                # six months
165   AutoPrune = yes                     # Prune expired Jobs/Files
166   Maximum Concurrent Jobs = 100
167 }
168
169 # Definition of DDS tape storage device
170 Storage {
171   Name = tape
172   Address = @hostname@                # N.B. Use a fully qualified name here
173   SDPort = @sdport@
174   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
175   Device = tape                      # must be same as Device in Storage daemon
176   Media Type = tape                  # must be same as MediaType in Storage daemon
177   Maximum Concurrent Jobs = 100
178 # Autochanger = yes
179 }
180
181
182 # Definition of File storage device
183 Storage {
184   Name = File
185   Address = @hostname@                # N.B. Use a fully qualified name here
186   SDPort = @sdport@
187   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
188   Device = FileStorage                # must be same as Device in Storage daemon
189   Media Type = FileMedia              # must be same as MediaType in Storage daemon
190   Maximum Concurrent Jobs = 100
191 }
192
193 # Definition of File2 storage device
194 Storage {
195   Name = File2
196   Address = @hostname@                # N.B. Use a fully qualified name here
197   SDPort = @sdport@
198   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
199   Device = FileStorage                # must be same as Device in Storage daemon
200   Media Type = FileMedia              # must be same as MediaType in Storage daemon
201   Maximum Concurrent Jobs = 100
202 }
203
204
205 # Definition of File3 storage device
206 Storage {
207   Name = File3
208   Address = @hostname@                # N.B. Use a fully qualified name here
209   SDPort = @sdport@
210   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
211   Device = FileStorage                # must be same as Device in Storage daemon
212   Media Type = FileMedia              # must be same as MediaType in Storage daemon
213   Maximum Concurrent Jobs = 100
214 }
215
216 # Definition of File4 storage device
217 Storage {
218   Name = File4
219   Address = @hostname@                # N.B. Use a fully qualified name here
220   SDPort = @sdport@
221   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
222   Device = FileStorage                # must be same as Device in Storage daemon
223   Media Type = FileMedia              # must be same as MediaType in Storage daemon
224   Maximum Concurrent Jobs = 100
225 }
226
227
228
229 # Definition of Virtual storage device
230 Storage {
231   Name = Virtual
232   Address = @hostname@                # N.B. Use a fully qualified name here
233   SDPort = @sdport@
234   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
235   Device = Virtual                    # must be same as Device in Storage daemon
236   Media Type = Disk                   # must be same as MediaType in Storage daemon
237   Maximum Concurrent Jobs = 100
238   Autochanger = yes
239 }
240
241
242
243
244 # Generic catalog service
245 Catalog {
246   Name = MyCatalog
247   @libdbi@
248   dbname = @db_name@; user = @db_user@; password = "@db_password@"
249 }
250
251 # Reasonable message delivery -- send most everything to email address
252 #  and to the console
253 Messages {
254   Name = Standard
255   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
256   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
257 # MailOnError = @job_email@ = all, !terminate
258 # operator = @job_email@ = mount
259   console = all, !skipped, !terminate, !restored
260 #
261 # WARNING! the following will create a file that you must cycle from
262 #          time to time as it will grow indefinitely. However, it will
263 #          also keep all your messages if the scroll off the console.
264 #
265   append = "@working_dir@/log" = all, !skipped
266   catalog = all, !skipped
267 }
268
269 #
270 # Message delivery for daemon messages (no job).
271 Messages {
272   Name = Daemon
273   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
274 # mail = @job_email@ = all, !skipped            
275   console = all, !skipped, !saved
276   append = "@working_dir@/log" = all, !skipped
277   catalog = all, !skipped
278 }
279
280     
281 # Default pool definition
282 Pool {
283   Name = Default
284   Pool Type = Backup
285   Recycle = yes                       # Bacula can automatically recycle Volumes
286   AutoPrune = yes                     # Prune expired volumes
287   Volume Retention = 365d             # one year
288   RecyclePool=Scratch                 # test forward reference
289 }
290
291 Pool {
292   Name = Full
293   Pool Type = Backup
294   Recycle = yes                       # Bacula can automatically recycle Volumes
295   AutoPrune = yes                     # Prune expired volumes
296   Volume Retention = 365d             # one year
297 }
298
299 Pool {
300   Name = Inc
301   Pool Type = Backup
302   Recycle = yes                       # Bacula can automatically recycle Volumes
303   AutoPrune = yes                     # Prune expired volumes
304   Volume Retention = 365d             # one year
305 }
306
307 Pool {
308   Name = Scratch
309   Pool Type = Backup
310   Recycle = yes                       # Bacula can automatically recycle Volumes
311   AutoPrune = yes                     # Prune expired volumes
312   Volume Retention = 365d             # one year
313   Recycle Pool = Scratch              # recycle back here
314 }
315
316 Pool {
317   Name = Special
318   Pool Type = Backup
319   Recycle = yes                       # Bacula can automatically recycle Volumes
320   AutoPrune = yes                     # Prune expired volumes
321   Volume Retention = 365d             # one year
322   ScratchPool = SpecialScratch
323   Maximum Volume Jobs = 1
324 }
325
326 Pool {
327   Name = SpecialScratch
328   Pool Type = Backup
329   Recycle = yes                       # Bacula can automatically recycle Volumes
330   AutoPrune = yes                     # Prune expired volumes
331   Volume Retention = 365d             # one year
332   Recycle Pool = SpecialScratch       # recycle back here
333 }