Truncate old volumes after backup.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 23 Mar 2011 16:00:09 +0000 (17:00 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 23 Mar 2011 16:00:09 +0000 (17:00 +0100)
debian/postinst

index 5a45d4f..1a1fbb6 100644 (file)
@@ -282,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 pool=$HOST-pool"
+   }
 }
 EOF