File = /var/run
File = /var/lock
File = /dev
+ File = /srv/chroot
+ File = /home/buildd/build-trees
}
}
########################################################################
Catalog {
Name = MyCatalog
- dbname = bacula; DB Address = ""; dbuser = "bacula"; dbpassword = "s3kr1t"
+ dbname = "service = bacula";
+ #DB Address = "<%= bacula_db_address %>";
+ #DB Port = <%= bacula_db_port %>;
+ dbuser = "bacula";
+ dbpassword = "<%= bacula_db_secret %>"
}
########################################################################
Name = Standard
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
- mail = <%= bacula_operator_email %> = all, !skipped
+ mail on error = <%= bacula_operator_email %> = all, !skipped
operator = <%= bacula_operator_email %> = mount
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
Level = Incremental
FileSet = "Standard Set"
Schedule = "WeeklyCycle"
- Storage = <%=bacula_filestor_name%>
Messages = Standard
Pool = <%=bacula_pool_name%>
Differential Backup Pool = <%=bacula_pool_name%>diff
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
Maximum Concurrent Jobs = 20
+ Client Run After Job = "/usr/local/sbin/postbaculajob -c \"%c\" -d \"%d\" -i \"%i\" -l \"%l\" -n \"%n\" -o /var/log/bacula-main.log"
+}
+
+########################################################################
+# Standard Restore template, to be changed by Console program #
+# Only one such job is needed for all Jobs/Clients/Storage ... #
+########################################################################
+Job {
+ Name = "RestoreFiles"
+ Type = Restore
+ Client = draghi.debian.org-fd
+ FileSet = "Standard Set"
+ Pool = <%=bacula_pool_name%>
+ Messages = Standard
+ Where = /var/tmp/bacula-restores
}
########################################################################
Pool {
Name = <%= bacula_pool_name %>
Pool Type = Backup
+ Storage = <%=bacula_filestor_name%>
Recycle = no
AutoPrune = yes
Volume Retention = 1 year
- Label Format = "${Client}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
+ 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}"
Volume Use Duration = 23h
- Maximum Volume Jobs = 1
+ #Maximum Volume Jobs = 1
Maximum Volume Bytes = 50G
Action On Purge = Truncate
}
Pool {
Name = <%= bacula_pool_name %>diff
Pool Type = Backup
+ Storage = <%=bacula_filestor_name%>
Recycle = no
AutoPrune = yes
Volume Retention = 1 year
- Label Format = "${Client}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
+ 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}"
Volume Use Duration = 23h
- Maximum Volume Jobs = 1
+ #Maximum Volume Jobs = 1
Maximum Volume Bytes = 50G
Action On Purge = Truncate
}
Pool {
Name = <%= bacula_pool_name %>inc
Pool Type = Backup
+ Storage = <%=bacula_filestor_name%>
Recycle = no
AutoPrune = yes
Volume Retention = 1 year
- Label Format = "${Client}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
+ 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}"
Volume Use Duration = 23h
- Maximum Volume Jobs = 1
+ #Maximum Volume Jobs = 1
Maximum Volume Bytes = 50G
Action On Purge = Truncate
}
# Generic jobs #
########################################################################
# Backup the catalog database (after the nightly save)
-Job {
- Name = "BackupCatalog"
- JobDefs = "Standardbackup"
- Level = Full
- FileSet="Catalog"
- Schedule = "WeeklyCycleAfterBackup"
- # This creates an ASCII copy of the catalog
- # Arguments to make_catalog_backup.pl are:
- # make_catalog_backup.pl <catalog-name>
- RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
- # This deletes the copy of the catalog
- RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
- Write Bootstrap = "/var/lib/bacula/%n.bsr"
- Priority = 15 # run after main backup
- RunScript {
- RunsWhen=After
- RunsOnClient=No
- Console = "purge volume action=all allpools storage=File"
- }
-}
+#Job {
+# Name = "BackupCatalog"
+# JobDefs = "Standardbackup"
+# Level = Full
+# FileSet="Catalog"
+# Schedule = "WeeklyCycleAfterBackup"
+# # This creates an ASCII copy of the catalog
+# # Arguments to make_catalog_backup.pl are:
+# # make_catalog_backup.pl <catalog-name>
+# RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
+# # This deletes the copy of the catalog
+# RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
+# Write Bootstrap = "/var/lib/bacula/%n.bsr"
+# Priority = 15 # run after main backup
+# RunScript {
+# RunsWhen=After
+# RunsOnClient=No
+# Console = "purge volume action=all allpools storage=File"
+# }
+#}
########################################################################
# And now include all the generated configs #