Keywords: main

Subsections

- Truncate Volume after Purge
- Allow Higher Duplicates
- Cancel Lower Level Duplicates

# New Features in 5.0.1

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.

#
Truncate Volume after Purge

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.

# Allow Higher Duplicates

This directive did not work correctly and has been depreciated (disabled) in version 5.0.1. Please remove it from your bacula-dir.conf file as it will be removed in a future rlease.

# Cancel Lower Level Duplicates

This directive was added in Bacula version 5.0.1. It compares the level of a new backup job to old jobs of the same name, if any, and will kill the job which has a lower level than the other one. If the levels are the same (i.e. both are Full backups), then nothing is done and the other Cancel XXX Duplicate directives will be examined.