]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-2media-virtual.conf.in
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / scripts / bacula-dir-2media-virtual.conf.in
1 #
2 # Default Bacula Director Configuration file
3 #
4 #  Virtual disk changer with two Media Types and two Archive
5 #   devices.
6 #
7
8 Director {                            # define myself
9   Name = @hostname@-dir
10   DIRPort = @dirport@                # where we listen for UA connections
11   QueryFile = "@scriptdir@/query.sql"
12   WorkingDirectory = "@working_dir@"
13   PidDirectory = "@piddir@"
14   Maximum Concurrent Jobs = 100
15   Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
16   Messages = Daemon
17   FD Connect Timeout = 2min 
18 }
19
20 Job {
21   Name = "Virtual"
22   Type = Backup
23   Client=@hostname@-fd 
24   FileSet="Full Set"
25   Storage = Virtual
26   Messages = Standard
27   Pool = Default
28   Write Bootstrap = "@working_dir@/NightlySave.bsr"
29   Maximum Concurrent Jobs = 100
30   Max Run Time = 30min
31 }
32
33 Job {
34   Name = "copy-job"
35   Type = Copy
36   Client=@hostname@-fd 
37   FileSet="Full Set"
38   Storage = Virtual
39   Messages = Standard
40   Pool = Default
41   Write Bootstrap = "@working_dir@/NightlySave.bsr"
42   Maximum Concurrent Jobs = 100
43   Max Run Time = 30min
44   Selection Type = Job
45   Selection Pattern = "Virtual"
46 }
47
48 Job {
49   Name = "copy-job-next-pool"
50   Type = Copy
51   Client=@hostname@-fd 
52   FileSet="Full Set"
53   Storage = Virtual
54   Messages = Standard
55   Pool = Default
56   Next Pool = Special
57   Write Bootstrap = "@working_dir@/NightlySave.bsr"
58   Maximum Concurrent Jobs = 100
59   Max Run Time = 30min
60   Selection Type = Job
61   Selection Pattern = "Virtual"
62 }
63
64 # Standard Restore template, to be changed by Console program
65 Job {
66   Name = "RestoreFiles"
67   Type = Restore
68   Client = @hostname@-fd 
69   FileSet = "Full Set"
70   Storage = Virtual
71   Messages = Standard
72   Pool = Default
73   Where = @tmpdir@/bacula-restores
74   Max Run Time = 30min
75 }
76
77
78 # List of files to be backed up
79 FileSet {
80   Name = "Full Set"
81   Include { Options { signature=MD5 
82 #     Deduplication = yes
83             }
84     File =  <@tmpdir@/file-list
85   }
86 }
87
88 FileSet {
89   Name = "Verify Set"
90   Include { 
91     Options { 
92        signature=MD5
93        verify=pins1
94     }
95     File =  <@tmpdir@/file-list
96   }
97 }
98
99
100
101 #
102 # When to do the backups, full backup on first sunday of the month,
103 #  differential (i.e. incremental since full) every other sunday,
104 #  and incremental backups other days
105 Schedule {
106   Name = "WeeklyCycle"
107   Run = Full 1st sun at 1:05
108   Run = Differential 2nd-5th sun at 1:05
109   Run = Incremental mon-sat at 1:05
110 }
111
112 # Client (File Services) to backup
113 Client {
114   Name = @hostname@-fd
115   Address = @hostname@
116   FDPort = @fdport@
117   Catalog = MyCatalog
118   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
119   File Retention = 30d                # 30 days
120   Job Retention = 180d                # six months
121   AutoPrune = yes                     # Prune expired Jobs/Files
122   Maximum Concurrent Jobs = 100
123 }
124
125 Autochanger {
126   Name = Virtual2
127   Address = @hostname@                # N.B. Use a fully qualified name here
128   SDPort = @sdport@
129   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
130   Device = Virtual2
131   Media Type = disk2
132   Maximum Concurrent Jobs = 100
133 }
134
135 # Definition of Virtual autochanger
136 Autochanger {
137   Name = Virtual
138   Address = @hostname@                # N.B. Use a fully qualified name here
139   SDPort = @sdport@
140   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
141   Device = Virtual
142   Media Type = disk
143   Maximum Concurrent Jobs = 100
144   Autochanger = Virtual
145 }
146
147 Storage {
148   Name = vDrive-1
149   Address = @hostname@                # N.B. Use a fully qualified name here
150   SDPort = @sdport@
151   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
152   Device = Virtual
153   Media Type = disk
154   Maximum Concurrent Jobs = 100
155   Autochanger = Virtual
156 }
157
158 Storage {
159   Name = vDrive-3
160   Address = @hostname@                # N.B. Use a fully qualified name here
161   SDPort = @sdport@
162   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
163   Device = Virtual
164   Media Type = disk1
165   Maximum Concurrent Jobs = 100
166   Autochanger = Virtual
167 }
168
169 # Generic catalog service
170 Catalog {
171   Name = MyCatalog
172   dbname = @db_name@; user = @db_user@; password = "@db_password@"
173 }
174
175 # Reasonable message delivery -- send most everything to email address
176 #  and to the console
177 Messages {
178   Name = Standard
179   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
180   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
181   console = all, !skipped, !terminate, !restored
182   append = "@working_dir@/log" = all, !skipped
183   catalog = all, !skipped
184 }
185
186 #
187 # Message delivery for daemon messages (no job).
188 Messages {
189   Name = Daemon
190   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
191 # mail = @job_email@ = all, !skipped            
192   console = all, !skipped, !saved
193   append = "@working_dir@/log" = all, !skipped
194   catalog = all, !skipped
195 }
196
197     
198 # Default pool definition
199 Pool {
200   Name = Default
201   Pool Type = Backup
202   Recycle = yes                       # Bacula can automatically recycle Volumes
203   AutoPrune = yes                     # Prune expired volumes
204   Volume Retention = 365d             # one year
205 # RecyclePool=Scratch                 # test forward reference
206   Next Pool = FullCopy
207 }
208
209 Pool {
210   Name = Full
211   Pool Type = Backup
212   Recycle = yes                       # Bacula can automatically recycle Volumes
213   AutoPrune = yes                     # Prune expired volumes
214   Volume Retention = 365d             # one year
215   Next Pool = FullCopy
216 }
217
218 Pool {
219   Name = FullCopy
220   Pool Type = Backup
221   Recycle = yes                       # Bacula can automatically recycle Volumes
222   AutoPrune = yes                     # Prune expired volumes
223   Volume Retention = 365d             # one year
224   Storage = Virtual
225 }
226
227 Pool {
228   Name = Special
229   Pool Type = Backup
230   Recycle = yes                       # Bacula can automatically recycle Volumes
231   AutoPrune = yes                     # Prune expired volumes
232   Volume Retention = 365d             # one year
233   Storage = Virtual2
234 }
235
236 #Pool {
237 #  Name = Scratch
238 #  Pool Type = Backup
239 #  Recycle = yes                       # Bacula can automatically recycle Volumes
240 #  AutoPrune = yes                     # Prune expired volumes
241 #  Volume Retention = 365d             # one year
242 #  Recycle Pool = Scratch              # recycle back here
243 #}
244
245
246 #Pool {
247 #  Name = SpecialScratch
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 #  Recycle Pool = SpecialScratch       # recycle back here
253 #}