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