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%> }
30 TLS Allowed CN = "clientcerts/<%= bacula_director_address %>"
31 TLS CA Certificate File = "<%= bacula_ca_path %>"
32 # This is a server certificate, used for incoming console connections.
33 TLS Certificate = "<%= bacula_ssl_server_cert %>"
34 TLS Key = "<%= bacula_ssl_server_key %>"
37 ########################################################################
39 ########################################################################
42 Ignore FileSet Changes = yes
54 File = "\\|/usr/local/sbin/bacula-backup-dirs"
55 # Dont backup directories that contain .nobackup files
56 Exclude Dir Containing = .nobackup
63 File = /home/buildd/build-trees
72 File = /var/lib/bacula
73 File = /var/lib/munin-async
75 File = /var/log/samhain
77 File = "\\|bash -c 'grep -s -v ^# /etc/bacula/local-exclude || true'"
81 ########################################################################
82 # A fileset for the catalog, one sql dump of the db #
83 ########################################################################
91 File = "/var/lib/bacula/bacula.sql.gz"
95 ########################################################################
97 ########################################################################
99 # When to do the backups, full backup on first sunday of the month,
100 # differential (i.e. incremental since full) every other sunday,
101 # and incremental backups other days
104 # fulls are automatically run if the last full backup was 40 days ago
105 # for the current value of 40 look for "Max Full Interval" in this file.
106 # Run = Full 1st sat at 00:35
107 Run = Differential sat at 00:35
108 Run = Incremental sun-fri at 00:35
111 # This schedule does the catalog. It starts after the WeeklyCycle
113 Name = "WeeklyCycleAfterBackup"
114 Run = Full sun-sat at 02:10
117 ########################################################################
118 # Generic catalog service #
119 ########################################################################
122 dbname = "service = bacula";
123 #DB Address = "<%= bacula_db_address %>";
124 #DB Port = <%= bacula_db_port %>;
126 dbpassword = "<%= bacula_db_secret %>"
129 ########################################################################
131 ########################################################################
134 mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
135 operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
136 #mail on error = <%= bacula_operator_email %> = all, !skipped
137 mail = <%= bacula_operator_email %> = all
138 operator = <%= bacula_operator_email %> = mount
139 console = all, !skipped, !saved
140 append = "/var/lib/bacula/log" = all
144 # Message delivery for daemon messages (no job).
147 mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
148 mail = <%= bacula_operator_email %> = all
149 console = all, !skipped, !saved
150 append = "/var/lib/bacula/log" = all
153 ########################################################################
155 ########################################################################
157 Name = <%= bacula_monitor_name %>
158 Password = "<%= bacula_monitor_secret %>"
159 CommandACL = status, .status
162 ########################################################################
163 # Jobdefinitions with defaults and stuff #
164 ########################################################################
166 Name = "Standardbackup"
169 FileSet = "Standard Set"
171 Schedule = "WeeklyCycle"
173 Max Full Interval = 40 days
175 Write Bootstrap = "/var/lib/bacula/%c.bsr"
176 Maximum Concurrent Jobs = 20
177 Client Run After Job = "/usr/local/sbin/postbaculajob -c \"%c\" -d \"%d\" -i \"%i\" -l \"%l\" -n \"%n\" -o /var/log/bacula/client-after.state"
180 ########################################################################
181 # Standard Restore template, to be changed by Console program #
182 # Only one such job is needed for all Jobs/Clients/Storage ... #
183 ########################################################################
185 Name = "RestoreFiles"
187 Client = <%=bacula_director_address%>-fd
188 FileSet = "Standard Set"
189 Pool = poolfull-<%=bacula_pool_name%>-<%=bacula_director_address%>
191 Where = /var/tmp/bacula-restores
195 # Scratch pool definition
201 ########################################################################
203 ########################################################################
204 # Backup the catalog database (after the nightly save)
206 Name = "<%= bacula_filestor_name %>-catalog"
207 Address = <%= bacula_storage_address %>
208 SDPort = <%= bacula_storage_port %>
209 Password = "<%= bacula_storage_secret %>"
210 Device = "<%= bacula_filestor_device %>-catalog"
211 Media Type = "<%= bacula_filestor_name %>-catalog"
212 Maximum Concurrent Jobs = 10
216 TLS CA Certificate File = "<%= bacula_ca_path %>"
217 # This is a client certificate, used by the director to connect to the storage daemon
218 TLS Certificate = "<%= bacula_ssl_client_cert %>"
219 TLS Key = "<%= bacula_ssl_client_key %>"
222 Name = "poolcatalog-<%=bacula_pool_name%>"
224 Storage = "<%=bacula_filestor_name%>-catalog"
226 Volume Retention = 2 months
227 Label Format = "<%= bacula_pool_name %>-catalog.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
228 Volume Use Duration = 23h
229 Maximum Volume Jobs = 1
230 Maximum Volume Bytes = 50G
231 Action On Purge = Truncate
233 RecyclePool = "poolcataloggraveyard-<%=bacula_pool_name%>"
236 Name = "poolcataloggraveyard-<%=bacula_pool_name%>"
238 Storage = "<%=bacula_filestor_name%>-catalog"
240 RecyclePool = "poolcataloggraveyard-<%=bacula_pool_name%>"
244 Name = "BackupCatalog"
245 JobDefs = "Standardbackup"
246 Client = <%=bacula_director_address%>-fd
249 Schedule = "WeeklyCycleAfterBackup"
250 # # This creates an ASCII copy of the catalog
251 # # Arguments to make_catalog_backup.pl are:
252 # # make_catalog_backup.pl <catalog-name>
253 RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
254 # # This deletes the copy of the catalog
255 RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
256 Write Bootstrap = "/var/lib/bacula/%n.bsr"
257 Priority = 15 # run after main backup
258 Pool = "poolcatalog-<%=bacula_pool_name%>"
261 ########################################################################
262 # And now include all the generated configs #
263 ########################################################################
264 @|"sh -c 'for f in /etc/bacula/conf.d/*.conf ; do echo @${f} ; done'"