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