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 ########################################################################
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"
162 Storage = <%=bacula_filestor_name%>
164 Pool = <%=bacula_pool_name%>
165 Differential Backup Pool = <%=bacula_pool_name%>diff
166 Incremental Backup Pool = <%=bacula_pool_name%>inc
167 Max Full Interval = 1 month
169 Write Bootstrap = "/var/lib/bacula/%c.bsr"
170 Maximum Concurrent Jobs = 20
171 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"
185 Where = /var/tmp/bacula-restores
188 ########################################################################
190 ########################################################################
192 Name = <%= bacula_pool_name %>
196 Volume Retention = 1 year
197 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}"
198 Volume Use Duration = 23h
199 #Maximum Volume Jobs = 1
200 Maximum Volume Bytes = 50G
201 Action On Purge = Truncate
205 Name = <%= bacula_pool_name %>diff
209 Volume Retention = 1 year
210 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}"
211 Volume Use Duration = 23h
212 #Maximum Volume Jobs = 1
213 Maximum Volume Bytes = 50G
214 Action On Purge = Truncate
218 Name = <%= bacula_pool_name %>inc
222 Volume Retention = 1 year
223 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}"
224 Volume Use Duration = 23h
225 #Maximum Volume Jobs = 1
226 Maximum Volume Bytes = 50G
227 Action On Purge = Truncate
230 # Scratch pool definition
236 ########################################################################
238 ########################################################################
239 # Backup the catalog database (after the nightly save)
241 # Name = "BackupCatalog"
242 # JobDefs = "Standardbackup"
245 # Schedule = "WeeklyCycleAfterBackup"
246 # # This creates an ASCII copy of the catalog
247 # # Arguments to make_catalog_backup.pl are:
248 # # make_catalog_backup.pl <catalog-name>
249 # RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
250 # # This deletes the copy of the catalog
251 # RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
252 # Write Bootstrap = "/var/lib/bacula/%n.bsr"
253 # Priority = 15 # run after main backup
257 # Console = "purge volume action=all allpools storage=File"
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'"