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