]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-migration.conf.in
Copy trunk regress into Branch
[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 = "migrate-occupancy"
75   Type = Migrate
76   Level = Full
77   Client=@hostname@-fd 
78   FileSet="Full Set"
79   Messages = Standard
80   Storage = DiskChanger
81   Write Bootstrap = "@working_dir@/migratejob.bsr"
82   Pool = Default
83   Maximum Concurrent Jobs = 4
84   Selection Type = PoolOccupancy
85 }
86
87 Job {
88   Name = "migrate-time"
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 = PoolTime
99 }
100
101
102
103
104 # Standard Restore template, to be changed by Console program
105 Job {
106   Name = "RestoreFiles"
107   Type = Restore
108   Client=@hostname@-fd 
109   FileSet="Full Set"
110   Storage = File
111   Messages = Standard
112   Pool = Default
113   Where = @tmpdir@/bacula-restores
114 }
115
116
117 # List of files to be backed up
118 FileSet {
119   Name = "Full Set"
120   Include { Options { signature=MD5 }
121     File =  <@tmpdir@/file-list
122   }
123 }
124
125
126 #
127 # When to do the backups, full backup on first sunday of the month,
128 #  differential (i.e. incremental since full) every other sunday,
129 #  and incremental backups other days
130 Schedule {
131   Name = "WeeklyCycle"
132   Run = Full 1st sun at 1:05
133   Run = Differential 2nd-5th sun at 1:05
134   Run = Incremental mon-sat at 1:05
135 }
136
137 # Client (File Services) to backup
138 Client {
139   Name = @hostname@-fd
140   Address = @hostname@
141   FDPort = @fdport@
142   Catalog = MyCatalog
143   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
144   File Retention = 30d                # 30 days
145   Job Retention = 180d                # six months
146   AutoPrune = yes                     # Prune expired Jobs/Files
147   Maximum Concurrent Jobs = 4
148 }
149
150 # Definition of DDS Virtual tape disk storage device
151 Storage {
152   Name = DiskChanger
153   Address = @hostname@                # N.B. Use a fully qualified name here
154   SDPort = @sdport@
155   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
156   Device = DiskChanger                      # must be same as Device in Storage daemon
157   Media Type = DiskChangerMedia             # must be same as MediaType in Storage daemon
158   Maximum Concurrent Jobs = 4
159   Autochanger = yes
160 }
161
162 # Definition of file storage device
163 Storage {           
164   Name = File
165   Address = @hostname@
166   SDPort = @sdport@
167   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
168   Device = FileStorage
169   Media Type = File
170   Maximum Concurrent Jobs = 5
171 }
172
173
174 # Generic catalog service
175 Catalog {
176   Name = MyCatalog
177   dbname = regress; user = regress; password = ""
178 }
179
180 # Reasonable message delivery -- send most everything to email address
181 #  and to the console
182 Messages {
183   Name = Standard
184   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
185   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
186   MailOnError = @job_email@ = all, !terminate
187   operator = @job_email@ = mount
188   console = all, !skipped, !terminate, !restored
189 #
190 # WARNING! the following will create a file that you must cycle from
191 #          time to time as it will grow indefinitely. However, it will
192 #          also keep all your messages if the scroll off the console.
193 #
194   append = "@working_dir@/log" = all, !skipped
195 }
196
197 #
198 # Message delivery for daemon messages (no job).
199 Messages {
200   Name = Daemon
201   mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
202   mail = @job_email@ = all, !skipped            
203   console = all, !skipped, !saved
204   append = "@working_dir@/log" = all, !skipped
205 }
206
207     
208 # Default pool definition
209 Pool {
210   Name = Default
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   NextPool = Full
216   Storage = File
217   Migration High Bytes = 40M
218   Migration Low Bytes = 20M
219   Migration Time = 60
220 }
221
222 Pool {
223   Name = Full
224   Pool Type = Backup
225   Recycle = yes                       # Bacula can automatically recycle Volumes
226   AutoPrune = yes                     # Prune expired volumes
227   Volume Retention = 365d             # one year
228   Storage = DiskChanger
229 }