Purge all pools.
[bacula-cn.git] / debian / postinst
index 4b466df..5e06a5c 100644 (file)
@@ -259,6 +259,8 @@ Console {
   Password = "$PASS_BCONSOLE"         # password for bconsole(8)
   JobACL = $HOST, RestoreFiles
   ClientACL = $HOST-fd
+  StorageACL = $HOST-stor
+  PoolACL = $HOST-pool, tmp
 }
 
 Pool {
@@ -280,6 +282,11 @@ Job {
   JobDefs = "Job_SysBackup"
   Pool = $HOST-pool
   Storage = $HOST-stor
+  RunScript {
+    RunsWhen=After
+    RunsOnClient=No
+    Console = "purge volume action=all storage=$HOST-stor allpools"
+   }
 }
 EOF