]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/new-test-bacula-dir.conf.in
- Take Dan's fix to the fix_postgresql_tables (thanks Dan)
[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.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 = 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 = signature=MD5 { 
137     </tmp/file-list
138   }
139 }
140
141 FileSet {
142   Name = "SparseSet"
143   Include {
144     Options {
145       signature=MD5 sparse=yes
146     }
147     File = </tmp/file-list
148   }
149 }
150
151 FileSet {
152   Name = "CompressedSet"
153   Include {
154     Options {
155       signature=MD5 compression=GZIP 
156     }
157     File = </tmp/file-list
158   }
159 }
160
161 FileSet {
162   Name = "SparseCompressedSet"
163   Include {
164     Options {
165       signature=MD5 compression=GZIP
166     }
167     File = </tmp/file-list
168   }
169 }
170
171
172
173 #
174 # When to do the backups, full backup on first sunday of the month,
175 #  differential (i.e. incremental since full) every other sunday,
176 #  and incremental backups other days
177 Schedule {
178   Name = "WeeklyCycle"
179   Run = Full 1st sun at 1:05
180   Run = Differential 2nd-5th sun at 1:05
181   Run = Incremental mon-sat at 1:05
182 }
183
184 # This schedule does the catalog. It starts after the WeeklyCycle
185 Schedule {
186   Name = "WeeklyCycleAfterBackup"
187   Run = Full sun-sat at 1:10
188 }
189
190 # This is the backup of the catalog
191 FileSet {
192   Name = "Catalog"
193   Include {
194     Options {
195       signature=MD5
196     }
197     File = /home/kern/bacula/regress/bin/working/bacula.sql
198   }
199 }
200
201 # Client (File Services) to backup
202 Client {
203   Name = @hostname@-fd
204   Address = @hostname@
205   FDPort = 8102
206   Catalog = MyCatalog
207   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
208   File Retention = 30d                # 30 days
209   Job Retention = 180d                # six months
210   AutoPrune = yes                     # Prune expired Jobs/Files
211   Maximum Concurrent Jobs = 4
212 }
213
214 # Definiton of file storage device
215 Storage {
216   Name = File
217   Address = @hostname@                # N.B. Use a fully qualified name here
218   SDPort = 8103
219   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
220   Device = FileStorage
221   Media Type = File
222   Maximum Concurrent Jobs = 4
223 }
224
225 Storage {
226   Name = File1
227   Address = @hostname@                # N.B. Use a fully qualified name here
228   SDPort = 8103
229   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
230   Device = FileStorage1
231   Media Type = File1
232   Maximum Concurrent Jobs = 4
233 }
234
235
236 # Definition of DLT tape storage device
237 #Storage {
238 #  Name = DLTDrive
239 #  Address = @hostname@                # N.B. Use a fully qualified name here
240 #  SDPort = 8103
241 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
242 #  Device = "HP DLT 80"                # must be same as Device in Storage daemon
243 #  Media Type = DLT8000                # must be same as MediaType in Storage daemon
244 #}
245
246 # Definition of DDS tape storage device
247 #Storage {
248 #  Name = SDT-10000
249 #  Address = @hostname@                # N.B. Use a fully qualified name here
250 #  SDPort = 8103
251 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
252 #  Device = SDT-10000                  # must be same as Device in Storage daemon
253 #  Media Type = DDS-4                  # must be same as MediaType in Storage daemon
254 #}
255
256 # Definition of 8mm tape storage device
257 #Storage {
258 #  Name = "8mmDrive"
259 #  Address = @hostname@                # N.B. Use a fully qualified name here
260 #  SDPort = 8103
261 #  Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
262 #  Device = "Exabyte 8mm"
263 #  MediaType = "8mm"
264 #}
265
266
267 # Generic catalog service
268 Catalog {
269   Name = MyCatalog
270   dbname = bacula; user = bacula; password = ""
271 }
272
273 # Reasonable message delivery -- send most everything to email address
274 #  and to the console
275 Messages {
276   Name = Standard
277   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
278   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
279   MailOnError = @job_email@ = all
280   operator = @job_email@ = mount
281   console = all, !skipped, !terminate, !restored
282 #
283 # WARNING! the following will create a file that you must cycle from
284 #          time to time as it will grow indefinitely. However, it will
285 #          also keep all your messages if the scroll off the console.
286 #
287   append = "@working_dir@/log" = all, !skipped
288 }
289
290 Messages {
291   Name = NoEmail
292   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
293   console = all, !skipped, !terminate
294 #
295 # WARNING! the following will create a file that you must cycle from
296 #          time to time as it will grow indefinitely. However, it will
297 #          also keep all your messages if the scroll off the console.
298 #
299   append = "@working_dir@/log" = all, !skipped
300 }
301
302     
303 # Default pool definition
304 Pool {
305   Name = Default
306   Pool Type = Backup
307   Recycle = yes                       # Bacula can automatically recycle Volumes
308   AutoPrune = yes                     # Prune expired volumes
309   Volume Retention = 365d             # one year
310   Accept Any Volume = yes             # write on any volume in the pool
311 # Label Format = "TEST-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}:${NumVols}"
312 }