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 ########################################################################
98 dbname = bacula; DB Address = ""; dbuser = "bacula"; dbpassword = "s3kr1t"
101 ########################################################################
103 ########################################################################
106 mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
107 operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
108 mail = <%= bacula_operator_email %> = all, !skipped
109 operator = <%= bacula_operator_email %> = mount
110 console = all, !skipped, !saved
111 append = "/var/lib/bacula/log" = all, !skipped
115 # Message delivery for daemon messages (no job).
118 mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
119 mail = <%= bacula_operator_email %> = all, !skipped
120 console = all, !skipped, !saved
121 append = "/var/lib/bacula/log" = all, !skipped
124 ########################################################################
126 ########################################################################
129 Name = <%= bacula_filestor_name %>
130 Address = <%= bacula_storage_address %>
131 SDPort = <%= bacula_storage_port %>
132 Password = "<%= bacula_storage_secret %>"
133 Device = <%= bacula_filestor_device %>
134 Media Type = <%= bacula_filestor_name %>
135 Maximum Concurrent Jobs = 10
138 ########################################################################
140 ########################################################################
142 Name = <%= bacula_monitor_name %>
143 Password = "<%= bacula_monitor_secret %>"
144 CommandACL = status, .status
147 ########################################################################
148 # Jobdefinitions with defaults and stuff #
149 ########################################################################
151 Name = "Standardbackup"
154 FileSet = "Standard Set"
155 Schedule = "WeeklyCycle"
156 Storage = <%=bacula_filestor_name%>
158 Pool = <%=bacula_pool_name%>
159 Differential Backup Pool = <%=bacula_pool_name%>diff
160 Incremental Backup Pool = <%=bacula_pool_name%>inc
161 Max Full Interval = 1 month
163 Write Bootstrap = "/var/lib/bacula/%c.bsr"
164 Maximum Concurrent Jobs = 20
167 ########################################################################
169 ########################################################################
171 Name = <%= bacula_pool_name %>
175 Volume Retention = 1 year
176 Label Format = "${Client}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
177 Volume Use Duration = 23h
178 Maximum Volume Jobs = 1
179 Maximum Volume Bytes = 50G
180 Action On Purge = Truncate
184 Name = <%= bacula_pool_name %>diff
188 Volume Retention = 1 year
189 Label Format = "${Client}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
190 Volume Use Duration = 23h
191 Maximum Volume Jobs = 1
192 Maximum Volume Bytes = 50G
193 Action On Purge = Truncate
197 Name = <%= bacula_pool_name %>inc
201 Volume Retention = 1 year
202 Label Format = "${Client}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
203 Volume Use Duration = 23h
204 Maximum Volume Jobs = 1
205 Maximum Volume Bytes = 50G
206 Action On Purge = Truncate
209 # Scratch pool definition
215 ########################################################################
217 ########################################################################
218 # Backup the catalog database (after the nightly save)
220 Name = "BackupCatalog"
221 JobDefs = "Standardbackup"
224 Schedule = "WeeklyCycleAfterBackup"
225 # This creates an ASCII copy of the catalog
226 # Arguments to make_catalog_backup.pl are:
227 # make_catalog_backup.pl <catalog-name>
228 RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
229 # This deletes the copy of the catalog
230 RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
231 Write Bootstrap = "/var/lib/bacula/%n.bsr"
232 Priority = 15 # run after main backup
236 Console = "purge volume action=all allpools storage=File"
240 ########################################################################
241 # And now include all the generated configs #
242 ########################################################################
243 @|"sh -c 'for f in /etc/bacula/conf.d/*.conf ; do echo @${f} ; done'"