]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-2client.conf.in
regress: fix regress-win32 prog to handle monitor section in bacula-fd.conf
[bacula/bacula] / regress / scripts / bacula-dir-2client.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 1.33
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 = @hostname@-dir
17   DIRPort = @dirport@                # where we listen for UA connections
18   QueryFile = "@scriptdir@/query.sql"
19   WorkingDirectory = "@working_dir@"
20   PidDirectory = "@piddir@"
21   Maximum Concurrent Jobs = 4
22   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
23   Messages = Daemon
24   FD Connect Timeout = 2min 
25 }
26
27 #
28 # Define the main nightly save backup job
29 #   By default, this job will back up to disk in @tmpdir@
30 Job {
31   Name = "NightlySave"
32   Type = Backup
33   Client=@hostname@-fd 
34   FileSet="Full Set"
35   Storage = tape
36   Messages = Standard
37   Pool = Default
38   Write Bootstrap = "@working_dir@/NightlySave.bsr"
39   Maximum Concurrent Jobs = 4
40   SpoolData = yes
41 # Prefer Mounted Volumes = no
42 }
43
44 #
45 # Note, this client does not exist so the job will
46 #   fail
47 #
48 Job {
49   Name = "Offline"
50   Type = Backup
51   Client=@hostname@-fd1
52   FileSet="Full Set"
53   Storage = tape
54   Messages = Standard
55   Pool = Default
56   Write Bootstrap = "@working_dir@/NightlySave.bsr"
57   Maximum Concurrent Jobs = 4
58   SpoolData = yes
59 # Prefer Mounted Volumes = no
60 }
61
62
63 Job {
64   Name = "NightlySave1"
65   Type = Backup
66   Client=@hostname@-fd 
67   FileSet="Full Set"
68   Storage = tape
69   Messages = Standard
70   Pool = Default
71   Write Bootstrap = "@working_dir@/NightlySave.bsr"
72   Maximum Concurrent Jobs = 4
73   SpoolData = yes
74 # Prefer Mounted Volumes = no
75   Client Run Before Job = "/bin/sleep 10"
76 }
77
78 Job {
79   Name = "NightlySave2"
80   Type = Backup
81   Client=@hostname@-fd 
82   FileSet="Full Set"
83   Storage = tape
84   Messages = Standard
85   Pool = Default
86   Write Bootstrap = "@working_dir@/NightlySave.bsr"
87   Maximum Concurrent Jobs = 4
88   SpoolData = yes
89 # Prefer Mounted Volumes = no
90 }
91
92 Job {
93   Name = "VerifyTape"
94   Type = Verify
95   Level = VolumeToCatalog
96   Client=@hostname@-fd 
97   FileSet="Verify Set"
98   Storage = tape
99   Messages = Standard
100   Pool = Default
101   Write Bootstrap = "@working_dir@/NightlySave.bsr"
102   Maximum Concurrent Jobs = 4
103   SpoolData = yes
104 # Prefer Mounted Volumes = no
105 }
106
107 Job {
108   Name = "Virtual"
109   Type = Backup
110   Client=@hostname@-fd 
111   FileSet="Full Set"
112   Storage = Virtual
113   Messages = Standard
114   Pool = Default
115   Write Bootstrap = "@working_dir@/NightlySave.bsr"
116   Maximum Concurrent Jobs = 4
117   SpoolData = yes
118 # Prefer Mounted Volumes = no
119 }
120
121
122
123 # Standard Restore template, to be changed by Console program
124 Job {
125   Name = "RestoreFiles"
126   Type = Restore
127   Client=@hostname@-fd 
128   FileSet="Full Set"
129   Storage = tape
130   Messages = Standard
131   Pool = Default
132   Where = @tmpdir@/bacula-restores
133 }
134
135
136 # List of files to be backed up
137 FileSet {
138   Name = "Full Set"
139   Include { Options { signature=MD5 }
140     File =  <@tmpdir@/file-list
141   }
142 }
143
144 FileSet {
145   Name = "Verify Set"
146   Include { 
147     Options { 
148        signature=MD5
149        verify=pins1
150     }
151     File =  <@tmpdir@/file-list
152   }
153 }
154
155
156
157 #
158 # When to do the backups, full backup on first sunday of the month,
159 #  differential (i.e. incremental since full) every other sunday,
160 #  and incremental backups other days
161 Schedule {
162   Name = "WeeklyCycle"
163   Run = Full 1st sun at 1:05
164   Run = Differential 2nd-5th sun at 1:05
165   Run = Incremental mon-sat at 1:05
166 }
167
168 # Client (File Services) to backup
169 Client {
170   Name = @hostname@-fd
171   Address = @hostname@
172   FDPort = @fdport@
173   Catalog = MyCatalog
174   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
175   File Retention = 30d                # 30 days
176   Job Retention = 180d                # six months
177   AutoPrune = yes                     # Prune expired Jobs/Files
178   Maximum Concurrent Jobs = 4
179 }
180
181 Client {
182   Name = @hostname@-fd1
183   Address = @hostname@
184   FDPort = 1@fdport@                # nothing should be on this port!!!!!
185   Catalog = MyCatalog
186   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
187   File Retention = 30d                # 30 days
188   Job Retention = 180d                # six months
189   AutoPrune = yes                     # Prune expired Jobs/Files
190   Maximum Concurrent Jobs = 4
191 }
192
193
194 # Definition of DDS tape storage device
195 Storage {
196   Name = tape
197   Address = @hostname@                # N.B. Use a fully qualified name here
198   SDPort = @sdport@
199   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
200   Device = tape                      # must be same as Device in Storage daemon
201   Media Type = tape                  # must be same as MediaType in Storage daemon
202   Maximum Concurrent Jobs = 4
203 # Autochanger = yes
204 }
205
206
207 # Definition of File storage device
208 Storage {
209   Name = File
210   Address = @hostname@                # N.B. Use a fully qualified name here
211   SDPort = @sdport@
212   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
213   Device = FileStorage                # must be same as Device in Storage daemon
214   Media Type = FileMedia              # must be same as MediaType in Storage daemon
215   Maximum Concurrent Jobs = 4
216 }
217
218 # Definition of Virtual storage device
219 Storage {
220   Name = Virtual
221   Address = @hostname@                # N.B. Use a fully qualified name here
222   SDPort = @sdport@
223   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
224   Device = Virtual                    # must be same as Device in Storage daemon
225   Media Type = Disk                   # must be same as MediaType in Storage daemon
226   Maximum Concurrent Jobs = 4
227 }
228
229
230
231
232 # Generic catalog service
233 Catalog {
234   Name = MyCatalog
235   @libdbi@
236   dbname = @db_name@; user = @db_user@; password = "@db_password@"
237 }
238
239 # Reasonable message delivery -- send most everything to email address
240 #  and to the console
241 Messages {
242   Name = Standard
243   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
244   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
245 # MailOnError = @job_email@ = all, !terminate
246 # operator = @job_email@ = mount
247   console = all, !skipped, !terminate, !restored
248 #
249 # WARNING! the following will create a file that you must cycle from
250 #          time to time as it will grow indefinitely. However, it will
251 #          also keep all your messages if the scroll off the console.
252 #
253   append = "@working_dir@/log" = all, !skipped
254   catalog = all, !skipped
255 }
256
257 #
258 # Message delivery for daemon messages (no job).
259 Messages {
260   Name = Daemon
261   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
262 # mail = @job_email@ = all, !skipped            
263   console = all, !skipped, !saved
264   append = "@working_dir@/log" = all, !skipped
265   catalog = all, !skipped
266 }
267
268     
269 # Default pool definition
270 Pool {
271   Name = Default
272   Pool Type = Backup
273   Recycle = yes                       # Bacula can automatically recycle Volumes
274   AutoPrune = yes                     # Prune expired volumes
275   Volume Retention = 365d             # one year
276 }
277
278 Pool {
279   Name = Full
280   Pool Type = Backup
281   Recycle = yes                       # Bacula can automatically recycle Volumes
282   AutoPrune = yes                     # Prune expired volumes
283   Volume Retention = 365d             # one year
284 }
285
286 Pool {
287   Name = Inc
288   Pool Type = Backup
289   Recycle = yes                       # Bacula can automatically recycle Volumes
290   AutoPrune = yes                     # Prune expired volumes
291   Volume Retention = 365d             # one year
292 }
293
294 Pool {
295   Name = Scratch
296   Pool Type = Backup
297   Recycle = yes                       # Bacula can automatically recycle Volumes
298   AutoPrune = yes                     # Prune expired volumes
299   Volume Retention = 365d             # one year
300   Recycle Pool = Scratch              # recycle back here
301 }