]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/win32-bacula-dir.conf.in
regress: Try to implement registry test in regress-win32.pl
[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
130 #
131 # When to do the backups, full backup on first sunday of the month,
132 #  differential (i.e. incremental since full) every other sunday,
133 #  and incremental backups other days
134 Schedule {
135   Name = "WeeklyCycle"
136   Run = Full 1st sun at 1:05
137   Run = Differential 2nd-5th sun at 1:05
138   Run = Incremental mon-sat at 1:05
139 }
140
141 # Client (File Services) to backup
142 Client {
143   Name = @win32_client@
144   Address = @win32_addr@
145   FDPort = @win32_port@
146   Catalog = MyCatalog
147   Password = "@win32_password@"
148   File Retention = 30d                # 30 days
149   Job Retention = 180d                # six months
150   AutoPrune = yes                     # Prune expired Jobs/Files
151   Maximum Concurrent Jobs = 4
152 }
153
154
155 # Definition of File storage device
156 Storage {
157   Name = File
158   Address = @win32_store_addr@       # N.B. Use a fully qualified name here
159   SDPort = @sdport@
160   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
161   Device = FileStorage               # must be same as Device in Storage daemon
162   Media Type = File                  # must be same as MediaType in Storage daemon
163 #  AutoChanger = yes
164   Maximum Concurrent Jobs = 4
165 }
166
167
168 # Generic catalog service
169 Catalog {
170   Name = MyCatalog
171   @libdbi@
172   dbname = @db_name@; user = @db_user@; password = "@db_password@"
173 }
174
175 # Reasonable message delivery -- send most everything to email address
176 #  and to the console
177 Messages {
178   Name = Standard
179   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
180 # operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
181 # MailOnError = @job_email@ = all, !terminate
182 # operator = @job_email@ = mount
183   console = all, !skipped, !terminate, !restored
184 #
185 # WARNING! the following will create a file that you must cycle from
186 #          time to time as it will grow indefinitely. However, it will
187 #          also keep all your messages if the scroll off the console.
188 #
189   append = "@working_dir@/log" = all, !skipped
190   catalog = all, !skipped
191 }
192
193 #
194 # Message delivery for daemon messages (no job).
195 Messages {
196   Name = Daemon
197   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
198 # mail = @job_email@ = all, !skipped            
199   console = all, !skipped, !saved
200   append = "@working_dir@/log" = all, !skipped
201   catalog = all, !skipped
202 }
203
204     
205 # Default pool definition
206 Pool {
207   Name = Default
208   Pool Type = Backup
209   Recycle = yes                       # Bacula can automatically recycle Volumes
210   AutoPrune = yes                     # Prune expired volumes
211   Volume Retention = 365d             # one year
212 }