X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=5e06a5cd44724f5b12ddc33a7a4bee99b6fe4f9e;hb=8b6471f09ecf1312e12aab4b8f12da811f434964;hp=b1bdf4684e4e077a195a10a9ff2e44be6f62232e;hpb=d4f02f986029849da61d0bf3a3466b589033aa4c;p=bacula-cn.git diff --git a/debian/postinst b/debian/postinst index b1bdf46..5e06a5c 100644 --- a/debian/postinst +++ b/debian/postinst @@ -247,29 +247,46 @@ EOF # Requested by $CONTACT on $DATE Client { Name = $HOST-fd + @/etc/bacula/include/client-debian-default.conf Address = $IP Password = "$PASS_FD" # password for bacula-fd(8) - @/etc/bacula/include/client-debian-default.conf - - TLS Enable = yes - TLS Require = yes TLS CA Certificate File = "/etc/bacula/clients.d/$HOST-fd.pem" - TLS Certificate = "/etc/bacula/bacula.pem" - TLS Key = "/etc/bacula/bacula.key" -} - -Job { - Name = "$HOST" - Client = $HOST-fd - JobDefs = "Job_SysBackup" } Console { Name = $HOST-acl + @/etc/bacula/include/acl-default.conf Password = "$PASS_BCONSOLE" # password for bconsole(8) JobACL = $HOST, RestoreFiles ClientACL = $HOST-fd - @/etc/bacula/include/acl-default.conf + StorageACL = $HOST-stor + PoolACL = $HOST-pool, tmp +} + +Pool { + Name = $HOST-pool + @/etc/bacula/include/pool-default.conf + Label Format = ${HOST}_ +} + +Storage { + Name = $HOST-stor + @/etc/bacula/include/storage-default.conf + Device = file_$HOST + Media Type = media_$HOST +} + +Job { + Name = "$HOST" + Client = $HOST-fd + JobDefs = "Job_SysBackup" + Pool = $HOST-pool + Storage = $HOST-stor + RunScript { + RunsWhen=After + RunsOnClient=No + Console = "purge volume action=all storage=$HOST-stor allpools" + } } EOF