]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/full_win32_installer/bacula-dir.conf.in
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / full_win32_installer / bacula-dir.conf.in
1 #\r
2 # Default Bacula Director Configuration file\r
3 #\r
4 #  The only thing that MUST be changed is to add one or more\r
5 #   file or directory names in the Include directive of the\r
6 #   FileSet resource.\r
7 #\r
8 #  For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ @DISTVER@\r
9 #\r
10 #  You might also want to change the default email address\r
11 #   from root to your address.  See the "mail" and "operator"\r
12 #   directives in the Messages resource.\r
13 #\r
14 \r
15 Director {                            # define myself\r
16   Name = @director_name@\r
17   DIRport = @director_port@                # where we listen for UA connections\r
18   QueryFile = "@bin_dir@\\query.sql"\r
19   WorkingDirectory = "@working_dir@"\r
20   PidDirectory = "@working_dir@"\r
21   Maximum Concurrent Jobs = @director_maxjobs@\r
22   Password = "@director_password@"         # Console password\r
23   Messages = Daemon\r
24 }\r
25 \r
26 JobDefs {\r
27   Name = "DefaultJob"\r
28   Type = Backup\r
29   Level = Incremental\r
30   Client = @client_name@\r
31   FileSet = "Test Set"\r
32   Schedule = "WeeklyCycle"\r
33   Storage = File\r
34   Messages = Standard\r
35   Pool = Default\r
36   Priority = 10\r
37 }\r
38 \r
39 \r
40 #\r
41 # Define the main nightly save backup job\r
42 #   By default, this job will back up to disk in C:/tmp\r
43 Job {\r
44   Name = "Client1"\r
45   JobDefs = "DefaultJob"\r
46   Write Bootstrap = "@working_dir@\\Client1.bsr"\r
47 }\r
48 \r
49 #Job {\r
50 #  Name = "Client2"\r
51 #  Client = @client_name@2\r
52 #  JobDefs = "DefaultJob"\r
53 #  Write Bootstrap = "@working_dir@\\Client2.bsr"\r
54 #}\r
55 \r
56 # Backup the catalog database (after the nightly save)\r
57 Job {\r
58   Name = "BackupCatalog"\r
59   JobDefs = "DefaultJob"\r
60   Level = Full\r
61   FileSet="Catalog"\r
62   Schedule = "WeeklyCycleAfterBackup"\r
63   # This creates an ASCII copy of the catalog\r
64   RunBeforeJob = "\"@bin_dir@\\make_catalog_backup\" bacula bacula"\r
65   # This deletes the copy of the catalog\r
66   RunAfterJob  = "\"@bin_dir@\\delete_catalog_backup\""\r
67   Write Bootstrap = "@working_dir@\\BackupCatalog.bsr"\r
68   Priority = 11                   # run after main backup\r
69 }\r
70 \r
71 #\r
72 # Standard Restore template, to be changed by Console program\r
73 #  Only one such job is needed for all Jobs/Clients/Storage ...\r
74 #\r
75 Job {\r
76   Name = "RestoreFiles"\r
77   Type = Restore\r
78   Client=@client_name@\r
79   FileSet="Test Set"\r
80   Storage = File\r
81   Pool = Default\r
82   Messages = Standard\r
83   Where = "C:\\tmp\\bacula-restores"\r
84 }\r
85 \r
86 #\r
87 # Note: Windows path separators do NOT work correctly in FileSets.\r
88 #\r
89 # List of files to be backed up\r
90 FileSet {\r
91   Name = "Test Set"\r
92   Include {\r
93     Options {\r
94       signature = MD5\r
95       ignore case = yes\r
96     }\r
97 #    \r
98 #  Put your list of files here, preceded by 'File =', one per line\r
99 #    or include an external list with:\r
100 #\r
101 #    File = <file-name\r
102 #\r
103 #  Note: C:/ backs up everything on drive C.\r
104 #    if you have other drives such as D:/\r
105 #    you will probably want to add them too.\r
106 #\r
107 #  By default this is defined to point to the Bacula \r
108 #    directory to give a reasonable FileSet to backup to\r
109 #    disk storage during initial testing.\r
110 #\r
111     File = "@BUILD_DIR@"\r
112   }\r
113 \r
114 #\r
115 # If you backup the root directory, the following excluded\r
116 #   files can be useful\r
117 #\r
118   Exclude {\r
119     File = C:/Temp\r
120     File = C:/tmp\r
121   }\r
122 }\r
123 \r
124 #\r
125 # This is an example which will backup all the hard drives of a Windows System.\r
126 #\r
127 FileSet {\r
128   Name = "Windows Full Set"\r
129   Enable VSS = yes\r
130   Include {\r
131     Options {\r
132       Signature = MD5\r
133       Exclude = yes\r
134       IgnoreCase = yes\r
135       EnhancedWild = yes\r
136       DriveType = fixed\r
137 \r
138       # Exclude directories full of lots and lots of useless little files\r
139       WildDir = "[A-Z]:/Documents and Settings/*/Cookies"\r
140       WildDir = "[A-Z]:/Documents and Settings/*/Recent"\r
141       WildDir = "[A-Z]:/Documents and Settings/*/{Local Settings,LOCALS~1}/History"\r
142       WildDir = "[A-Z]:/Documents and Settings/*/{Local Settings,LOCALS~1}/Temp"\r
143       WildDir = "[A-Z]:/Documents and Settings/*/{Local Settings,LOCALS~1}/Temporary Internet Files"\r
144 \r
145       # Exclude directories full of lots and lots of useless little files\r
146       WildDir = "[A-Z]:/{WINNT,Windows}/Profiles/*/Cookies"\r
147       WildDir = "[A-Z]:/{WINNT,Windows}/Profiles/*/Recent"\r
148       WildDir = "[A-Z]:/{WINNT,Windows}/Profiles/*/{Local Settings,LOCALS~1}/History"\r
149       WildDir = "[A-Z]:/{WINNT,Windows}/Profiles/*/{Local Settings,LOCALS~1}/Temp"\r
150       WildDir = "[A-Z]:/{WINNT,Windows}/Profiles/*/{Local Settings,LOCALS~1}/Temporary Internet Files"\r
151 \r
152       # Exclude directories full of lots and lots of useless little files\r
153       WildDir = "[A-Z]:/{WINNT,Windows}/system32/config/systemprofile/Cookies"\r
154       WildDir = "[A-Z]:/{WINNT,Windows}/system32/config/systemprofile/Recent"\r
155       WildDir = "[A-Z]:/{WINNT,Windows}/system32/config/systemprofile/{Local Settings,LOCALS~1}/History"\r
156       WildDir = "[A-Z]:/{WINNT,Windows}/system32/config/systemprofile/{Local Settings,LOCALS~1}/Temp"\r
157       WildDir = "[A-Z]:/{WINNT,Windows}/system32/config/systemprofile/{Local Settings,LOCALS~1}/Temporary Internet Files"\r
158 \r
159       # Some random bits of Windows we want to ignore\r
160       WildDir = "[A-Z]:/{WINNT,Windows}/Prefetch"\r
161       WildDir = "[A-Z]:/{WINNT,Windows}/msdownld.tmp"\r
162       WildDir = "[A-Z]:/{WINNT,Windows}/Internet Logs"\r
163       WildDir = "[A-Z]:/{WINNT,Windows}/$Nt*Uninstall*"\r
164       WildDir = "[A-Z]:/{WINNT,Windows}/Downloaded Installations"\r
165 \r
166       # Temporary directories & files\r
167       WildDir = "[A-Z]:/{WINNT,Windows}/Temp"\r
168       WildDir = "[A-Z]:/Temp"\r
169       WildFile = "*.tmp"\r
170       WildDir = "[A-Z]:/tmp"\r
171 \r
172       # Fast Find\r
173       WildFile = "[A-Z]:/ffastun*"\r
174 \r
175       # System Restore\r
176       WildDir = "[A-Z]:/System Volume Information"\r
177 \r
178       # Windows Update\r
179       WildDir = "[A-Z]:/WUTemp"\r
180 \r
181       # Recycle bins\r
182       WildDir = "[A-Z]:/RECYCLE[DR]"\r
183 \r
184       # Swap files\r
185       WildFile = "[A-Z]:/pagefile.sys"\r
186       WildFile = "[A-Z]:/hiberfil.sys"\r
187 \r
188       # These are programs and are easier to reinstall than restore from\r
189       # backup\r
190       WildDir = "[A-Z]:/cygwin"\r
191       WildDir = "[A-Z]:/{Program Files,PROGRA~1}/Java"\r
192       WildDir = "[A-Z]:/{Program Files,PROGRA~1}/Java Web Start"\r
193       WildDir = "[A-Z]:/{Program Files,PROGRA~1}/JavaSoft"\r
194       WildDir = "[A-Z]:/{Program Files,PROGRA~1}/Microsoft Office"\r
195     }\r
196 \r
197     File = "C:/"\r
198     File = "D:/"\r
199     File = "E:/"\r
200     File = "F:/"\r
201     File = "G:/"\r
202     File = "H:/"\r
203     File = "I:/"\r
204     File = "J:/"\r
205     File = "K:/"\r
206     File = "L:/"\r
207     File = "M:/"\r
208     File = "N:/"\r
209     File = "O:/"\r
210     File = "P:/"\r
211     File = "Q:/"\r
212     File = "R:/"\r
213     File = "S:/"\r
214     File = "T:/"\r
215     File = "U:/"\r
216     File = "V:/"\r
217     File = "W:/"\r
218     File = "X:/"\r
219     File = "Y:/"\r
220     File = "Z:/"\r
221   }\r
222 }\r
223 \r
224 #\r
225 # When to do the backups, full backup on first sunday of the month,\r
226 #  differential (i.e. incremental since full) every other sunday,\r
227 #  and incremental backups other days\r
228 Schedule {\r
229   Name = "WeeklyCycle"\r
230   Run = Full 1st sun at 23:05\r
231   Run = Differential 2nd-5th sun at 23:05\r
232   Run = Incremental mon-sat at 23:05\r
233 }\r
234 \r
235 # This schedule does the catalog. It starts after the WeeklyCycle\r
236 Schedule {\r
237   Name = "WeeklyCycleAfterBackup"\r
238   Run = Full sun-sat at 23:10\r
239 }\r
240 \r
241 # This is the backup of the catalog\r
242 FileSet {\r
243   Name = "Catalog"\r
244   Include {\r
245     Options {\r
246       signature = MD5\r
247     }\r
248     File = "@working_dir@\\bacula.sql"\r
249   }\r
250 }\r
251 \r
252 # Client (File Services) to backup\r
253 Client {\r
254   Name = @client_name@\r
255   Address = @client_address@\r
256   FDPort = @client_port@\r
257   Catalog = MyCatalog\r
258   Password = "@client_password@"      # password for FileDaemon\r
259   File Retention = 30 days            # 30 days\r
260   Job Retention = 6 months            # six months\r
261   AutoPrune = yes                     # Prune expired Jobs/Files\r
262 }\r
263 \r
264 #\r
265 # Second Client (File Services) to backup\r
266 #  You should change Name, Address, and Password before using\r
267 #\r
268 #Client {\r
269 #  Name = @client_name@2\r
270 #  Address = @client_address@2\r
271 #  FDPort = @client_port@\r
272 #  Catalog = MyCatalog\r
273 #  Password = "@client_password@2"     # password for FileDaemon 2\r
274 #  File Retention = 30 days            # 30 days\r
275 #  Job Retention = 6 months            # six months\r
276 #  AutoPrune = yes                     # Prune expired Jobs/Files\r
277 #}\r
278 \r
279 \r
280 # Definition of file storage device\r
281 Storage {\r
282   Name = File\r
283 # Do not use "localhost" here\r
284   Address = @storage_address@                # N.B. Use a fully qualified name here\r
285   SDPort = @storage_port@\r
286   Password = "@storage_password@"\r
287   Device = FileStorage\r
288   Media Type = File\r
289 }\r
290 \r
291 \r
292 \r
293 # Definition of DDS tape storage device\r
294 #Storage {\r
295 #  Name = DDS-4    \r
296 #  Do not use "localhost" here\r
297 #  Address = @storage_address@                # N.B. Use a fully qualified name here\r
298 #  SDPort = @storage_port@\r
299 #  Password = "@storage_password@"          # password for Storage daemon\r
300 #  Device = DDS-4                      # must be same as Device in Storage daemon\r
301 #  Media Type = DDS-4                  # must be same as MediaType in Storage daemon\r
302 #  Autochanger = yes                   # enable for autochanger device\r
303 #}\r
304 \r
305 # Definition of 8mm tape storage device\r
306 #Storage {\r
307 #  Name = "8mmDrive"\r
308 #  Do not use "localhost" here\r
309 #  Address = @storage_address@                # N.B. Use a fully qualified name here\r
310 #  SDPort = @storage_port@\r
311 #  Password = "@storage_password@"\r
312 #  Device = "Exabyte 8mm"\r
313 #  MediaType = "8mm"\r
314 #}\r
315 \r
316 \r
317 # Generic catalog service\r
318 Catalog {\r
319   Name = MyCatalog\r
320   dbname = bacula; user = bacula; password = ""\r
321 }\r
322 \r
323 # Reasonable message delivery -- send most everything to email address\r
324 #  and to the console\r
325 Messages {\r
326   Name = Standard\r
327 #\r
328 # NOTE! If you send to two email or more email addresses, you will need\r
329 #  to replace the %r in the from field (-f part) with a single valid\r
330 #  email address in both the mailcommand and the operatorcommand.\r
331 #\r
332   mailcommand = "\"@bin_dir@\\bsmtp\" -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"\r
333   operatorcommand = "\"@bin_dir@\\bsmtp\" -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"\r
334   mail = @job_email@ = all, !skipped            \r
335   operator = @job_email@ = mount\r
336   console = all, !skipped, !saved\r
337 #\r
338 # WARNING! the following will create a file that you must cycle from\r
339 #          time to time as it will grow indefinitely. However, it will\r
340 #          also keep all your messages if they scroll off the console.\r
341 #\r
342   append = "@working_dir@\\log" = all, !skipped\r
343 }\r
344 \r
345 \r
346 #\r
347 # Message delivery for daemon messages (no job).\r
348 Messages {\r
349   Name = Daemon\r
350   mailcommand = "\"@bin_dir@\\bsmtp\" -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"\r
351   mail = @job_email@ = all, !skipped            \r
352   console = all, !skipped, !saved\r
353   append = "@working_dir@\\log" = all, !skipped\r
354 }\r
355 \r
356 \r
357 \r
358 # Default pool definition\r
359 Pool {\r
360   Name = Default\r
361   Pool Type = Backup\r
362   Recycle = yes                       # Bacula can automatically recycle Volumes\r
363   AutoPrune = yes                     # Prune expired volumes\r
364   Volume Retention = 365 days         # one year\r
365 }\r
366 \r
367 # Scratch pool definition\r
368 Pool {\r
369   Name = Scratch\r
370   Pool Type = Backup\r
371 }\r
372 \r
373 #\r
374 # Restricted console used by tray-monitor to get the status of the director\r
375 #\r
376 Console {\r
377   Name = @monitor_name@\r
378   Password = "@monitor_password@"\r
379   CommandACL = status, .status\r
380 }\r