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