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