2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
6 # For Bacula release 5.0.1 (24 February 2010) -- debian 5.0.4
8 ########################################################################
9 # Bacula Director itself #
10 ########################################################################
13 Name = <%= bacula_director_name %>
14 Description = <%= hostname %> - <%= domain %> Bacula Director
15 QueryFile = "/etc/bacula/scripts/query.sql"
16 WorkingDirectory = "/var/lib/bacula"
17 PidDirectory = "/var/run/bacula"
18 Maximum Concurrent Jobs = 20
19 Password = "<%= bacula_director_secret %>"
22 # Always have localhost in, then the configured IP
23 ip = { addr = 127.0.0.1; port = 9101 }
24 ip = { addr = <%=bacula_director_address%>; port = <%=bacula_director_port%> }
28 ########################################################################
30 ########################################################################
38 File = "\\|bash -c \"df -Pkl -x tmpfs | tail -n +2 | awk '{print \$NF}' \""
39 # Dont backup directories that contain .nobackup files
40 Exclude Dir Containing = .nobackup
44 File = /var/lib/bacula
45 File = /var/cache/apt/
57 File = /home/buildd/build-trees
61 ########################################################################
62 # A fileset for the catalog, one sql dump of the db #
63 ########################################################################
71 File = "/var/lib/bacula/bacula.sql"
75 ########################################################################
77 ########################################################################
79 # When to do the backups, full backup on first sunday of the month,
80 # differential (i.e. incremental since full) every other sunday,
81 # and incremental backups other days
84 Run = Full 1st sat at 00:35
85 Run = Differential 2nd-5th sat at 00:35
86 Run = Incremental sun-fri at 00:35
89 # This schedule does the catalog. It starts after the WeeklyCycle
91 Name = "WeeklyCycleAfterBackup"
92 Run = Full sun-sat at 02:10
95 ########################################################################
96 # Generic catalog service #
97 ########################################################################
100 dbname = "service = bacula";
101 #DB Address = "<%= bacula_db_address %>";
102 #DB Port = <%= bacula_db_port %>;
104 dbpassword = "<%= bacula_db_secret %>"
107 ########################################################################
109 ########################################################################
112 mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
113 operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
114 mail on error = <%= bacula_operator_email %> = all, !skipped
115 operator = <%= bacula_operator_email %> = mount
116 console = all, !skipped, !saved
117 append = "/var/lib/bacula/log" = all, !skipped
121 # Message delivery for daemon messages (no job).
124 mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
125 mail = <%= bacula_operator_email %> = all, !skipped
126 console = all, !skipped, !saved
127 append = "/var/lib/bacula/log" = all, !skipped
130 ########################################################################
132 ########################################################################
135 Name = <%= bacula_filestor_name %>
136 Address = <%= bacula_storage_address %>
137 SDPort = <%= bacula_storage_port %>
138 Password = "<%= bacula_storage_secret %>"
139 Device = <%= bacula_filestor_device %>
140 Media Type = <%= bacula_filestor_name %>
141 Maximum Concurrent Jobs = 10
144 ########################################################################
146 ########################################################################
148 Name = <%= bacula_monitor_name %>
149 Password = "<%= bacula_monitor_secret %>"
150 CommandACL = status, .status
153 ########################################################################
154 # Jobdefinitions with defaults and stuff #
155 ########################################################################
157 Name = "Standardbackup"
160 FileSet = "Standard Set"
161 Schedule = "WeeklyCycle"
163 Pool = <%=bacula_pool_name%>
164 Differential Backup Pool = <%=bacula_pool_name%>diff
165 Incremental Backup Pool = <%=bacula_pool_name%>inc
166 Max Full Interval = 1 month
168 Write Bootstrap = "/var/lib/bacula/%c.bsr"
169 Maximum Concurrent Jobs = 20
170 Client Run After Job = "/usr/local/sbin/postbaculajob -c \"%c\" -d \"%d\" -i \"%i\" -l \"%l\" -n \"%n\" -o /var/log/bacula-main.log"
174 ########################################################################
175 # Standard Restore template, to be changed by Console program #
176 # Only one such job is needed for all Jobs/Clients/Storage ... #
177 ########################################################################
179 Name = "RestoreFiles"
181 Client = draghi.debian.org-fd
182 FileSet = "Standard Set"
183 Pool = <%=bacula_pool_name%>
185 Where = /var/tmp/bacula-restores
188 ########################################################################
190 ########################################################################
192 Name = <%= bacula_pool_name %>
194 Storage = <%=bacula_filestor_name%>
197 Volume Retention = 1 year
198 Label Format = "<%= bacula_pool_name %>.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
199 Volume Use Duration = 23h
200 #Maximum Volume Jobs = 1
201 Maximum Volume Bytes = 50G
202 Action On Purge = Truncate
206 Name = <%= bacula_pool_name %>diff
208 Storage = <%=bacula_filestor_name%>
211 Volume Retention = 1 year
212 Label Format = "<%= bacula_pool_name %>diff.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
213 Volume Use Duration = 23h
214 #Maximum Volume Jobs = 1
215 Maximum Volume Bytes = 50G
216 Action On Purge = Truncate
220 Name = <%= bacula_pool_name %>inc
222 Storage = <%=bacula_filestor_name%>
225 Volume Retention = 1 year
226 Label Format = "<%= bacula_pool_name %>inc.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
227 Volume Use Duration = 23h
228 #Maximum Volume Jobs = 1
229 Maximum Volume Bytes = 50G
230 Action On Purge = Truncate
233 # Scratch pool definition
239 ########################################################################
241 ########################################################################
242 # Backup the catalog database (after the nightly save)
244 # Name = "BackupCatalog"
245 # JobDefs = "Standardbackup"
248 # Schedule = "WeeklyCycleAfterBackup"
249 # # This creates an ASCII copy of the catalog
250 # # Arguments to make_catalog_backup.pl are:
251 # # make_catalog_backup.pl <catalog-name>
252 # RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
253 # # This deletes the copy of the catalog
254 # RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
255 # Write Bootstrap = "/var/lib/bacula/%n.bsr"
256 # Priority = 15 # run after main backup
260 # Console = "purge volume action=all allpools storage=File"
264 ########################################################################
265 # And now include all the generated configs #
266 ########################################################################
267 @|"sh -c 'for f in /etc/bacula/conf.d/*.conf ; do echo @${f} ; done'"