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