]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/win32-bacula-dir.conf.in
regress: tweak regress-win32 output
[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/testé.bat"         # ok  | ok  | ok
83    Command = "c:\\tmp\\weird_runscript\\testé.bat"      # ok  | ok  | ok
84    Command = "\"c:\\tmp\\weird_runscript\\test space.bat\"" # ok  | ok  | ok
85    RunsWhen = AfterVSS
86    FailJobOnError = no
87  }    
88 }
89
90 # Standard Restore template, to be changed by Console program
91 Job {
92   Name = "RestoreFiles"
93   Type = Restore
94   Client = @win32_client@
95   FileSet="Full Set"
96   Storage = File
97   Messages = Standard
98   Pool = Default
99   Where = @tmpdir@/bacula-restores
100 }
101
102
103 # List of files to be backed up
104 FileSet {
105   Name = "Full Set"
106   Enable VSS = yes
107   Include { 
108      Options { 
109         signature=MD5; portable=no  
110 #      compression=GZIP
111      }
112      File = "@win32_file@"
113   }
114 }
115 # List of files to be backed up
116 FileSet {
117   Name = "SystemState Set"
118   Enable VSS = yes
119   Include { 
120      Options { 
121         signature=MD5; portable=no  
122 #      compression=GZIP
123      }
124      File = "@win32_file@"
125      Plugin = "systemstate:/@SYSTEMSTATE/"
126   }
127 }
128
129 # List of files to be backed up
130 FileSet {
131   Name = "Plugin Set"
132   Enable VSS = yes
133   Include { 
134      Options { 
135         signature=MD5; portable=no  
136 #      compression=GZIP
137      }
138      File = "@win32_file@"
139      Plugin = "systemstate:/@SYSTEMSTATE/"
140   }
141 }
142
143 #
144 # When to do the backups, full backup on first sunday of the month,
145 #  differential (i.e. incremental since full) every other sunday,
146 #  and incremental backups other days
147 Schedule {
148   Name = "WeeklyCycle"
149   Run = Full 1st sun at 1:05
150   Run = Differential 2nd-5th sun at 1:05
151   Run = Incremental mon-sat at 1:05
152 }
153
154 # Client (File Services) to backup
155 Client {
156   Name = @win32_client@
157   Address = @win32_addr@
158   FDPort = @win32_port@
159   Catalog = MyCatalog
160   Password = "@win32_password@"
161   File Retention = 30d                # 30 days
162   Job Retention = 180d                # six months
163   AutoPrune = yes                     # Prune expired Jobs/Files
164   Maximum Concurrent Jobs = 4
165 }
166
167
168 # Definition of File storage device
169 Storage {
170   Name = File
171   Address = @win32_store_addr@       # N.B. Use a fully qualified name here
172   SDPort = @sdport@
173   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
174   Device = FileStorage               # must be same as Device in Storage daemon
175   Media Type = File                  # must be same as MediaType in Storage daemon
176 #  AutoChanger = yes
177   Maximum Concurrent Jobs = 4
178 }
179
180
181 # Generic catalog service
182 Catalog {
183   Name = MyCatalog
184   @libdbi@
185   dbname = @db_name@; user = @db_user@; password = "@db_password@"
186 }
187
188 # Reasonable message delivery -- send most everything to email address
189 #  and to the console
190 Messages {
191   Name = Standard
192   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
193 # operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
194 # MailOnError = @job_email@ = all, !terminate
195 # operator = @job_email@ = mount
196   console = all, !skipped, !terminate, !restored
197 #
198 # WARNING! the following will create a file that you must cycle from
199 #          time to time as it will grow indefinitely. However, it will
200 #          also keep all your messages if the scroll off the console.
201 #
202   append = "@working_dir@/log" = all, !skipped
203   catalog = all, !skipped
204 }
205
206 #
207 # Message delivery for daemon messages (no job).
208 Messages {
209   Name = Daemon
210   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
211 # mail = @job_email@ = all, !skipped            
212   console = all, !skipped, !saved
213   append = "@working_dir@/log" = all, !skipped
214   catalog = all, !skipped
215 }
216
217     
218 # Default pool definition
219 Pool {
220   Name = Default
221   Pool Type = Backup
222   Recycle = yes                       # Bacula can automatically recycle Volumes
223   AutoPrune = yes                     # Prune expired volumes
224   Volume Retention = 365d             # one year
225 }