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