]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/win32-bacula-dir.conf.in
Fix slow regress setups
[bacula/bacula] / regress / scripts / win32-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 #
9 #
10
11 Director {                            # define myself
12   Name = @hostname@-dir
13   DIRPort = @dirport@                # where we listen for UA connections
14   QueryFile = "@scriptdir@/query.sql"
15   WorkingDirectory = "@working_dir@"
16   PidDirectory = "@piddir@"
17   Maximum Concurrent Jobs = 4
18   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
19   Messages = Daemon
20 }
21
22 #
23 # Define the main nightly save backup job
24 #   By default, this job will back up to disk in @tmpdir@
25 Job {
26   Name = "NightlySave"
27   Type = Backup
28   Client = @win32_client@
29   FileSet = "Full Set"
30   Storage = File
31   Messages = Standard
32   Pool = Default
33   Write Bootstrap = "@working_dir@/NightlySave.bsr"
34   Maximum Concurrent Jobs = 4
35   SpoolData = yes
36 }
37
38 #
39 # Define the main nightly save backup job
40 #   By default, this job will back up to disk in @tmpdir@
41 Job {
42   Name = "SystemstateJob"
43   Type = Backup
44   Client = @win32_client@
45   FileSet = "SystemState Set"
46   Storage = File
47   Messages = Standard
48   Pool = Default
49   Write Bootstrap = "@working_dir@/NightlySave.bsr"
50   Maximum Concurrent Jobs = 4
51 }
52
53 Job {
54   Name = "AccurateJob"
55   Type = Backup
56   Client = @win32_client@
57   FileSet = "Full Set"
58   Storage = File
59   Messages = Standard
60   Pool = Default
61   Accurate = yes
62   Write Bootstrap = "@working_dir@/NightlySave.bsr"
63   Maximum Concurrent Jobs = 4
64   SpoolData = yes
65 }
66
67 Job {
68   Name = "RunScript"
69   Type = Backup
70   Client = @win32_client@
71   FileSet = "Full Set"
72   Storage = File
73   Messages = Standard
74   Pool = Default
75   Write Bootstrap = "@working_dir@/NightlySave.bsr"
76   Maximum Concurrent Jobs = 4
77   SpoolData = yes
78
79   RunScript {
80    Command = "c:\\tmp\\weird_runscript\\test.bat"               # ok  | ok  | ok
81    Command = "c:/tmp/weird_runscript/test.bat"                  # ok  | ok  | ok
82    Command = "\"c:/tmp/weird_runscript/dir space/test.bat\""    # ok  | ok  | ok
83    Command = "\"c:/tmp/weird_runscript/dir space/test2 space.bat\"" # ok|ok|ok
84    Command = "c:/tmp/weird_runscript/testé.bat"                 # ok  | ok  | ok
85    Command = "c:\\tmp\\weird_runscript\\testé.bat"              # ok  | ok  | ok
86    Command = "\"c:\\tmp\\weird_runscript\\test space.bat\""     # ok  | ok  | ok
87    RunsWhen = AfterVSS
88    FailJobOnError = no
89  }    
90 }
91
92 # Standard Restore template, to be changed by Console program
93 Job {
94   Name = "RestoreFiles"
95   Type = Restore
96   Client = @win32_client@
97   FileSet="Full Set"
98   Storage = File
99   Messages = Standard
100   Pool = Default
101   Where = @tmpdir@/bacula-restores
102 }
103
104
105 # List of files to be backed up
106 FileSet {
107   Name = "Full Set"
108   Enable VSS = yes
109   Include { 
110      Options { 
111         signature=MD5; portable=no  
112 #      compression=GZIP
113      }
114      File = "@win32_file@"
115   }
116 }
117 # List of files to be backed up
118 FileSet {
119   Name = "SystemState Set"
120   Enable VSS = yes
121   Include { 
122      Options { 
123         signature=MD5; portable=no  
124 #      compression=GZIP
125      }
126      File = "@win32_file@"
127      Plugin = "systemstate:/@SYSTEMSTATE/"
128   }
129 }
130
131 # List of files to be backed up
132 FileSet {
133   Name = "Plugin Set"
134   Enable VSS = yes
135   Include { 
136      Options { 
137         signature=MD5; portable=no  
138 #      compression=GZIP
139      }
140      File = "@win32_file@"
141      Plugin = "systemstate:/@SYSTEMSTATE/"
142   }
143 }
144
145 #
146 # When to do the backups, full backup on first sunday of the month,
147 #  differential (i.e. incremental since full) every other sunday,
148 #  and incremental backups other days
149 Schedule {
150   Name = "WeeklyCycle"
151   Run = Full 1st sun at 1:05
152   Run = Differential 2nd-5th sun at 1:05
153   Run = Incremental mon-sat at 1:05
154 }
155
156 # Client (File Services) to backup
157 Client {
158   Name = @win32_client@
159   Address = @win32_addr@
160   FDPort = @win32_port@
161   Catalog = MyCatalog
162   Password = "@win32_password@"
163   File Retention = 30d                # 30 days
164   Job Retention = 180d                # six months
165   AutoPrune = yes                     # Prune expired Jobs/Files
166   Maximum Concurrent Jobs = 4
167 }
168
169
170 # Definition of File storage device
171 Storage {
172   Name = File
173   Address = @win32_store_addr@       # N.B. Use a fully qualified name here
174   SDPort = @sdport@
175   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
176   Device = FileStorage               # must be same as Device in Storage daemon
177   Media Type = File                  # must be same as MediaType in Storage daemon
178 #  AutoChanger = yes
179   Maximum Concurrent Jobs = 4
180 }
181
182
183 # Generic catalog service
184 Catalog {
185   Name = MyCatalog
186   @libdbi@
187   dbname = @db_name@; user = @db_user@; password = "@db_password@"
188 }
189
190 # Reasonable message delivery -- send most everything to email address
191 #  and to the console
192 Messages {
193   Name = Standard
194   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
195 # operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
196 # MailOnError = @job_email@ = all, !terminate
197 # operator = @job_email@ = mount
198   console = all, !skipped, !terminate, !restored
199 #
200 # WARNING! the following will create a file that you must cycle from
201 #          time to time as it will grow indefinitely. However, it will
202 #          also keep all your messages if the scroll off the console.
203 #
204   append = "@working_dir@/log" = all, !skipped
205   catalog = all, !skipped
206 }
207
208 #
209 # Message delivery for daemon messages (no job).
210 Messages {
211   Name = Daemon
212   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
213 # mail = @job_email@ = all, !skipped            
214   console = all, !skipped, !saved
215   append = "@working_dir@/log" = all, !skipped
216   catalog = all, !skipped
217 }
218
219     
220 # Default pool definition
221 Pool {
222   Name = Default
223   Pool Type = Backup
224   Recycle = yes                       # Bacula can automatically recycle Volumes
225   AutoPrune = yes                     # Prune expired volumes
226   Volume Retention = 365d             # one year
227 }