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