This chapter presents the new features that are in the released Bacula version 5.0.1. This version mainly fixes a number of bugs found in version 5.0.0 during the onging development process.
The Pool directive ActionOnPurge=Truncate instructs Bacula to truncate the volume when it is purged with the new command purge volume action. It is useful to prevent disk based volumes from consuming too much space.
Pool { Name = Default Action On Purge = Truncate ... }
As usual you can also set this property with the update volume command
*update volume=xxx ActionOnPurge=Truncate *update volume=xxx actiononpurge=None
To ask Bacula to truncate your Purged volumes, you need to use the following command in interactive mode or in a RunScript as shown after:
*purge volume action=truncate storage=File allpools # or by default, action=all *purge volume action storage=File pool=Default
This is possible to specify the volume name, the media type, the pool, the storage, etc...(see help purge) Be sure that your storage device is idle when you decide to run this command.
Job { Name = CatalogBackup ... RunScript { RunsWhen=After RunsOnClient=No Console = "purge volume action=all allpools storage=File" } }
Important note: This feature doesn't work as expected in version 5.0.0. Please do not use it before version 5.0.1.