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