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