]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/new-test-bacula-dir.conf.in
bd0f6dc57634d597450767bd06216c3306432819
[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 # Standard Restore template, to be changed by Console program
121 Job {
122   Name = "RestoreFiles"
123   Type = Restore
124   Client=@hostname@-fd 
125   FileSet="Full Set"
126   Storage = File
127   Messages = Standard
128   Pool = Default
129   Where = /tmp/bacula-restores
130 }
131
132
133 # List of files to be backed up
134 FileSet {
135   Name = "Full Set"
136   Include {  Options { signature=MD5 }
137      File =  </tmp/file-list
138   }
139 }
140
141 FileSet {
142   Name = "SparseSet"
143   Include {
144     Options {
145       signature=MD5
146       sparse=yes
147     }
148     File = </tmp/file-list
149   }
150 }
151
152 FileSet {
153   Name = "CompressedSet"
154   Include {
155     Options {
156       signature=MD5 
157       compression=GZIP 
158     }
159     File = </tmp/file-list
160   }
161 }
162
163 FileSet {
164   Name = "SparseCompressedSet"
165   Include {
166     Options {
167       signature=MD5 
168       compression=GZIP
169       sparse=yes
170     }
171     File = </tmp/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 {
198     Options {
199       signature=MD5
200     }
201     File = /home/kern/bacula/regress/bin/working/bacula.sql
202   }
203 }
204
205 # Client (File Services) to backup
206 Client {
207   Name = @hostname@-fd
208   Address = @hostname@
209   FDPort = 8102
210   Catalog = MyCatalog
211   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
212   File Retention = 30d                # 30 days
213   Job Retention = 180d                # six months
214   AutoPrune = yes                     # Prune expired Jobs/Files
215   Maximum Concurrent Jobs = 4
216 }
217
218 # Definiton of file storage device
219 Storage {
220   Name = File
221   Address = @hostname@                # N.B. Use a fully qualified name here
222   SDPort = 8103
223   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
224   Device = FileStorage
225   Media Type = File
226   Maximum Concurrent Jobs = 4
227 }
228
229 Storage {
230   Name = File1
231   Address = @hostname@                # N.B. Use a fully qualified name here
232   SDPort = 8103
233   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
234   Device = FileStorage1
235   Media Type = File1
236   Maximum Concurrent Jobs = 4
237 }
238
239
240 # Definition of DLT tape storage device
241 #Storage {
242 #  Name = DLTDrive
243 #  Address = @hostname@                # N.B. Use a fully qualified name here
244 #  SDPort = 8103
245 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
246 #  Device = "HP DLT 80"                # must be same as Device in Storage daemon
247 #  Media Type = DLT8000                # must be same as MediaType in Storage daemon
248 #}
249
250 # Definition of DDS tape storage device
251 #Storage {
252 #  Name = SDT-10000
253 #  Address = @hostname@                # N.B. Use a fully qualified name here
254 #  SDPort = 8103
255 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
256 #  Device = SDT-10000                  # must be same as Device in Storage daemon
257 #  Media Type = DDS-4                  # must be same as MediaType in Storage daemon
258 #}
259
260 # Definition of 8mm tape storage device
261 #Storage {
262 #  Name = "8mmDrive"
263 #  Address = @hostname@                # N.B. Use a fully qualified name here
264 #  SDPort = 8103
265 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
266 #  Device = "Exabyte 8mm"
267 #  MediaType = "8mm"
268 #}
269
270
271 # Generic catalog service
272 Catalog {
273   Name = MyCatalog
274   dbname = bacula; user = bacula; password = ""
275 }
276
277 # Reasonable message delivery -- send most everything to email address
278 #  and to the console
279 Messages {
280   Name = Standard
281   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
282   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
283   MailOnError = @job_email@ = all
284   operator = @job_email@ = mount
285   console = all, !skipped, !terminate, !restored
286 #
287 # WARNING! the following will create a file that you must cycle from
288 #          time to time as it will grow indefinitely. However, it will
289 #          also keep all your messages if the scroll off the console.
290 #
291   append = "@working_dir@/log" = all, !skipped
292 }
293
294 Messages {
295   Name = NoEmail
296   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
297   console = all, !skipped, !terminate
298 #
299 # WARNING! the following will create a file that you must cycle from
300 #          time to time as it will grow indefinitely. However, it will
301 #          also keep all your messages if the scroll off the console.
302 #
303   append = "@working_dir@/log" = all, !skipped
304 }
305
306     
307 # Default pool definition
308 Pool {
309   Name = Default
310   Pool Type = Backup
311   Recycle = yes                       # Bacula can automatically recycle Volumes
312   AutoPrune = yes                     # Prune expired volumes
313   Volume Retention = 365d             # one year
314 # Label Format = "TEST-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}:${NumVols}"
315 }