]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/bacula-dir-fifo.conf.in
Big backport from Enterprise
[bacula/bacula] / regress / scripts / bacula-dir-fifo.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.33
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 = Dummy
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 = "NightlySave1"
45   Type = Backup
46   Client=@hostname@-fd 
47   FileSet="Full Set"
48   Storage = Dummy
49   Messages = Standard
50   Pool = Default
51   Write Bootstrap = "@working_dir@/NightlySave.bsr"
52   Maximum Concurrent Jobs = 4
53   SpoolData = yes
54 # Prefer Mounted Volumes = no
55   Client Run Before Job = "sleep 30"
56 }
57
58 Job {
59   Name = "NightlySave2"
60   Type = Backup
61   Client=@hostname@-fd 
62   FileSet="Full Set"
63   Storage = Dummy
64   Messages = Standard
65   Pool = Default
66   Write Bootstrap = "@working_dir@/NightlySave.bsr"
67   Maximum Concurrent Jobs = 4
68   SpoolData = yes
69 # Prefer Mounted Volumes = no
70 }
71
72 Job {
73   Name = "VerifyTape"
74   Type = Verify
75   Level = VolumeToCatalog
76   Client=@hostname@-fd 
77   FileSet="Verify Set"
78   Storage = Dummy
79   Messages = Standard
80   Pool = Default
81   Write Bootstrap = "@working_dir@/NightlySave.bsr"
82   Maximum Concurrent Jobs = 4
83   SpoolData = yes
84 # Prefer Mounted Volumes = no
85 }
86
87
88
89
90 # Standard Restore template, to be changed by Console program
91 Job {
92   Name = "RestoreFiles"
93   Type = Restore
94   Client=@hostname@-fd 
95   FileSet="Full Set"
96   Storage = Dummy
97   Messages = Standard
98   Pool = Default
99   Where = @tmpdir@/bacula-restores
100 }
101
102
103 # List of files to be backed up
104 FileSet {
105   Name = "Full Set"
106   Include { Options { signature=MD5 }
107     File =  <@tmpdir@/file-list
108   }
109 }
110
111 FileSet {
112   Name = "Verify Set"
113   Include { 
114     Options { 
115        signature=MD5
116        verify=pins1
117     }
118     File =  "<@tmpdir@/file-list"
119   }
120 }
121
122
123
124 #
125 # When to do the backups, full backup on first sunday of the month,
126 #  differential (i.e. incremental since full) every other sunday,
127 #  and incremental backups other days
128 Schedule {
129   Name = "WeeklyCycle"
130   Run = Full 1st sun at 1:05
131   Run = Differential 2nd-5th sun at 1:05
132   Run = Incremental mon-sat at 1:05
133 }
134
135 # Client (File Services) to backup
136 Client {
137   Name = @hostname@-fd
138   Address = @hostname@
139   FDPort = @fdport@
140   Catalog = MyCatalog
141   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
142   File Retention = 30d                # 30 days
143   Job Retention = 180d                # six months
144   AutoPrune = yes                     # Prune expired Jobs/Files
145   Maximum Concurrent Jobs = 4
146 }
147
148 # Definition of DDS tape storage device
149 Storage {
150   Name = Dummy
151   Address = @hostname@                # N.B. Use a fully qualified name here
152   SDPort = @sdport@
153   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
154   Device = Dummy                      # must be same as Device in Storage daemon
155   Media Type = Dummy                  # must be same as MediaType in Storage daemon
156   Maximum Concurrent Jobs = 4
157 # Autochanger = yes
158 }
159
160
161 # Generic catalog service
162 Catalog {
163   Name = MyCatalog
164   @libdbi@
165   dbname = @db_name@; user = @db_user@; password = "@db_password@"
166 }
167
168 # Reasonable message delivery -- send most everything to email address
169 #  and to the console
170 Messages {
171   Name = Standard
172   mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
173   operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
174 # MailOnError = @job_email@ = all, !terminate
175 # operator = @job_email@ = mount
176   console = all, !skipped, !terminate, !restored
177 #
178 # WARNING! the following will create a file that you must cycle from
179 #          time to time as it will grow indefinitely. However, it will
180 #          also keep all your messages if the scroll off the console.
181 #
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 }
206
207 Pool {
208   Name = Full
209   Pool Type = Backup
210   Recycle = yes                       # Bacula can automatically recycle Volumes
211   AutoPrune = yes                     # Prune expired volumes
212   Volume Retention = 365d             # one year
213 }
214
215 Pool {
216   Name = Inc
217   Pool Type = Backup
218   Recycle = yes                       # Bacula can automatically recycle Volumes
219   AutoPrune = yes                     # Prune expired volumes
220   Volume Retention = 365d             # one year
221 }
222
223 Pool {
224   Name = Scratch
225   Pool Type = Backup
226   Recycle = yes                       # Bacula can automatically recycle Volumes
227   AutoPrune = yes                     # Prune expired volumes
228   Volume Retention = 365d             # one year
229 }