Counter Resource

The Counter Resource defines a counter variable that can be accessed by variable expansion used for creating Volume labels with the LabelFormat directive. See the LabelFormat directive in this chapter for more details.

The explanation on how to read the directive format:

  • Name: Contains the linked name of the directive.

  • Description: Explains what the directive does.

  • Value: Indicates what type of value to provide (e.g., <type-specification>).

  • Data Type: Specifies the type of data expected.

  • Values: Lists specific acceptable values.

  • Required: If present, indicates that the directive must be set by the user, there is no default value.

  • Default: If present, indicates that the directive has a predefined value that does not need to be set by the user, cannot be removed.

  • Comment: Additional important notes.

  • Example: Shows a usage example.

Counter Start of the Counter resource. Counter directives are optional.

Name

Description: The name of the Counter.

Value(s): <name>

Data Type: string

Required: Yes

Comment: This is the name you will use in the variable expansion to reference the counter value.

Minimum

Description: Specifies the minimum value that the counter can have.

Value(s): <number>

Data Type: integer

Comment: It also becomes the default.

Maximum

Description: This is the maximum value that the counter can have.

Value(s): <number>

Data Type: positive integer

Default: None

Comment: If not specified or set to zero, the counter can have a maximum value of 2,147,483,648 (2 to the 31 power). When the counter is incremented past this value, it is reset to the Minimum.

Wrap Counter

Description: If this value is specified, when the counter is incremented past the maximum and thus reset to the minimum, the counter specified on the WrapCounter is incremented.

Value(s): <counter-nam>

Data Type: string

Comment: This is not currently implemented.

Catalog

Description: If this directive is specified, the counter and its values will be saved in the specified catalog.

Value(s): <catalog-name>

Data Type: string

Comment: If this directive is not present, the counter will be redefined each time that Bacula is started.

Go back to the Director Resource Types page.

Go back to the Technical Reference for Director.