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