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