]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-tape.conf.in
Merge branch 'master' into basejobv3
[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 = "/bin/sleep 10"
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 DDS tape storage device
170 Storage {
171   Name = tape
172   Address = @hostname@                # N.B. Use a fully qualified name here
173   SDPort = @sdport@
174   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
175   Device = tape                      # must be same as Device in Storage daemon
176   Media Type = tape                  # must be same as MediaType in Storage daemon
177   Maximum Concurrent Jobs = 100
178 # Autochanger = yes
179 }
180
181
182 # Definition of File storage device
183 Storage {
184   Name = File
185   Address = @hostname@                # N.B. Use a fully qualified name here
186   SDPort = @sdport@
187   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
188   Device = FileStorage                # must be same as Device in Storage daemon
189   Media Type = FileMedia              # must be same as MediaType in Storage daemon
190   Maximum Concurrent Jobs = 100
191 }
192
193 # Definition of Virtual storage device
194 Storage {
195   Name = Virtual
196   Address = @hostname@                # N.B. Use a fully qualified name here
197   SDPort = @sdport@
198   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
199   Device = Virtual                    # must be same as Device in Storage daemon
200   Media Type = Disk                   # must be same as MediaType in Storage daemon
201   Maximum Concurrent Jobs = 100
202   Autochanger = yes
203 }
204
205
206
207
208 # Generic catalog service
209 Catalog {
210   Name = MyCatalog
211   @libdbi@
212   dbname = @db_name@; user = @db_user@; password = "@db_password@"
213 }
214
215 # Reasonable message delivery -- send most everything to email address
216 #  and to the console
217 Messages {
218   Name = Standard
219   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
220   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
221 # MailOnError = @job_email@ = all, !terminate
222 # operator = @job_email@ = mount
223   console = all, !skipped, !terminate, !restored
224 #
225 # WARNING! the following will create a file that you must cycle from
226 #          time to time as it will grow indefinitely. However, it will
227 #          also keep all your messages if the scroll off the console.
228 #
229   append = "@working_dir@/log" = all, !skipped
230   catalog = all, !skipped
231 }
232
233 #
234 # Message delivery for daemon messages (no job).
235 Messages {
236   Name = Daemon
237   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
238 # mail = @job_email@ = all, !skipped            
239   console = all, !skipped, !saved
240   append = "@working_dir@/log" = all, !skipped
241   catalog = all, !skipped
242 }
243
244     
245 # Default pool definition
246 Pool {
247   Name = Default
248   Pool Type = Backup
249   Recycle = yes                       # Bacula can automatically recycle Volumes
250   AutoPrune = yes                     # Prune expired volumes
251   Volume Retention = 365d             # one year
252   RecyclePool=Scratch                 # test forward reference
253 }
254
255 Pool {
256   Name = Full
257   Pool Type = Backup
258   Recycle = yes                       # Bacula can automatically recycle Volumes
259   AutoPrune = yes                     # Prune expired volumes
260   Volume Retention = 365d             # one year
261 }
262
263 Pool {
264   Name = Inc
265   Pool Type = Backup
266   Recycle = yes                       # Bacula can automatically recycle Volumes
267   AutoPrune = yes                     # Prune expired volumes
268   Volume Retention = 365d             # one year
269 }
270
271 Pool {
272   Name = Scratch
273   Pool Type = Backup
274   Recycle = yes                       # Bacula can automatically recycle Volumes
275   AutoPrune = yes                     # Prune expired volumes
276   Volume Retention = 365d             # one year
277   Recycle Pool = Scratch              # recycle back here
278 }
279
280 Pool {
281   Name = Special
282   Pool Type = Backup
283   Recycle = yes                       # Bacula can automatically recycle Volumes
284   AutoPrune = yes                     # Prune expired volumes
285   Volume Retention = 365d             # one year
286   ScratchPool = SpecialScratch
287   Maximum Volume Jobs = 1
288 }
289
290 Pool {
291   Name = SpecialScratch
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   Recycle Pool = SpecialScratch       # recycle back here
297 }