X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fbacula%2Ftemplates%2Fbacula-dir.conf.erb;h=66ff569f9d4600bd98ef6cec4b0256b0c3b6d0da;hb=176461aa7cca59f5a33c1a58953886f52f11630b;hp=f4e41daa2f27ee51f21a843c22c3166fe7cca257;hpb=f25d299bc65544b47e1eab5494139761ebbfcc46;p=dsa-puppet.git diff --git a/modules/bacula/templates/bacula-dir.conf.erb b/modules/bacula/templates/bacula-dir.conf.erb index f4e41daa..66ff569f 100644 --- a/modules/bacula/templates/bacula-dir.conf.erb +++ b/modules/bacula/templates/bacula-dir.conf.erb @@ -97,9 +97,9 @@ Schedule { ######################################################################## Catalog { Name = MyCatalog - dbname = bacula; - DB Address = "<%= bacula_db_address %>"; - DB Port = <%= bacula_db_port %>; + dbname = "service = bacula"; + #DB Address = "<%= bacula_db_address %>"; + #DB Port = <%= bacula_db_port %>; dbuser = "bacula"; dbpassword = "<%= bacula_db_secret %>" } @@ -159,7 +159,6 @@ JobDefs { Level = Incremental FileSet = "Standard Set" Schedule = "WeeklyCycle" - Storage = <%=bacula_filestor_name%> Messages = Standard Pool = <%=bacula_pool_name%> Differential Backup Pool = <%=bacula_pool_name%>diff @@ -168,6 +167,21 @@ JobDefs { 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 } ######################################################################## @@ -176,12 +190,13 @@ JobDefs { 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}.<%= bacula_pool_name %>" + 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 } @@ -189,12 +204,13 @@ Pool { 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}.<%= bacula_pool_name %>diff" + 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 } @@ -202,12 +218,13 @@ Pool { 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}.<%= bacula_pool_name %>inc" + 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 }