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