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