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/
59 ########################################################################
60 # A fileset for the catalog, one sql dump of the db #
61 ########################################################################
69 File = "/var/lib/bacula/bacula.sql"
73 ########################################################################
75 ########################################################################
77 # When to do the backups, full backup on first sunday of the month,
78 # differential (i.e. incremental since full) every other sunday,
79 # and incremental backups other days
82 Run = Full 1st sat at 00:35
83 Run = Differential 2nd-5th sat at 00:35
84 Run = Incremental sun-fri at 00:35
87 # This schedule does the catalog. It starts after the WeeklyCycle
89 Name = "WeeklyCycleAfterBackup"
90 Run = Full sun-sat at 02:10
93 ########################################################################
94 # Generic catalog service #
95 ########################################################################
99 DB Address = "<%= bacula_db_address %>";
100 DB Port = <%= bacula_db_port %>;
102 dbpassword = "<%= bacula_db_secret %>"
105 ########################################################################
107 ########################################################################
110 mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
111 operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
112 mail = <%= bacula_operator_email %> = all, !skipped
113 operator = <%= bacula_operator_email %> = mount
114 console = all, !skipped, !saved
115 append = "/var/lib/bacula/log" = all, !skipped
119 # Message delivery for daemon messages (no job).
122 mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
123 mail = <%= bacula_operator_email %> = all, !skipped
124 console = all, !skipped, !saved
125 append = "/var/lib/bacula/log" = all, !skipped
128 ########################################################################
130 ########################################################################
133 Name = <%= bacula_filestor_name %>
134 Address = <%= bacula_storage_address %>
135 SDPort = <%= bacula_storage_port %>
136 Password = "<%= bacula_storage_secret %>"
137 Device = <%= bacula_filestor_device %>
138 Media Type = <%= bacula_filestor_name %>
139 Maximum Concurrent Jobs = 10
142 ########################################################################
144 ########################################################################
146 Name = <%= bacula_monitor_name %>
147 Password = "<%= bacula_monitor_secret %>"
148 CommandACL = status, .status
151 ########################################################################
152 # Jobdefinitions with defaults and stuff #
153 ########################################################################
155 Name = "Standardbackup"
158 FileSet = "Standard Set"
159 Schedule = "WeeklyCycle"
160 Storage = <%=bacula_filestor_name%>
162 Pool = <%=bacula_pool_name%>
163 Differential Backup Pool = <%=bacula_pool_name%>diff
164 Incremental Backup Pool = <%=bacula_pool_name%>inc
165 Max Full Interval = 1 month
167 Write Bootstrap = "/var/lib/bacula/%c.bsr"
168 Maximum Concurrent Jobs = 20
171 ########################################################################
173 ########################################################################
175 Name = <%= bacula_pool_name %>
179 Volume Retention = 1 year
180 Label Format = "${Client}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
181 Volume Use Duration = 23h
182 Maximum Volume Jobs = 1
183 Maximum Volume Bytes = 50G
184 Action On Purge = Truncate
188 Name = <%= bacula_pool_name %>diff
192 Volume Retention = 1 year
193 Label Format = "${Client}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
194 Volume Use Duration = 23h
195 Maximum Volume Jobs = 1
196 Maximum Volume Bytes = 50G
197 Action On Purge = Truncate
201 Name = <%= bacula_pool_name %>inc
205 Volume Retention = 1 year
206 Label Format = "${Client}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
207 Volume Use Duration = 23h
208 Maximum Volume Jobs = 1
209 Maximum Volume Bytes = 50G
210 Action On Purge = Truncate
213 # Scratch pool definition
219 ########################################################################
221 ########################################################################
222 # Backup the catalog database (after the nightly save)
224 # Name = "BackupCatalog"
225 # JobDefs = "Standardbackup"
228 # Schedule = "WeeklyCycleAfterBackup"
229 # # This creates an ASCII copy of the catalog
230 # # Arguments to make_catalog_backup.pl are:
231 # # make_catalog_backup.pl <catalog-name>
232 # RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
233 # # This deletes the copy of the catalog
234 # RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
235 # Write Bootstrap = "/var/lib/bacula/%n.bsr"
236 # Priority = 15 # run after main backup
240 # Console = "purge volume action=all allpools storage=File"
244 ########################################################################
245 # And now include all the generated configs #
246 ########################################################################
247 @|"sh -c 'for f in /etc/bacula/conf.d/*.conf ; do echo @${f} ; done'"